From ce4e0932a5c40a339060140b7428e72ea7476418 Mon Sep 17 00:00:00 2001 From: Michael Bienia Date: Thu, 6 Aug 2009 16:26:29 +0200 Subject: [PATCH] ubuntutools/requestsync/mail.py: Rename SourcePackage to SourcePackagePublishingHistory to be in line with the lpapicache module. --- ubuntutools/requestsync/mail.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/ubuntutools/requestsync/mail.py b/ubuntutools/requestsync/mail.py index 3410034..46b73e6 100644 --- a/ubuntutools/requestsync/mail.py +++ b/ubuntutools/requestsync/mail.py @@ -24,10 +24,10 @@ from ..lp.udtexceptions import PackageNotFoundException __all__ = ['getDebianSrcPkg', 'getUbuntuSrcPkg'] -# Simulate the SourcePackage class from lpapiwrapper -class SourcePackage(object): +class SourcePackagePublishingHistory(object): ''' - Simulate a SourcePackage class from the LP API wrapper module. + Simulate a SourcePackagePublishingHistory class from the LP API caching + module. ''' def __init__(self, name, version, component): self.name = name @@ -72,7 +72,7 @@ def getSrcPkg(distro, name, release): if len(raw_comp) == 2: component = raw_comp[1] - return SourcePackage(name, version, component) + return SourcePackagePublishingHistory(name, version, component) def getDebianSrcPkg(name, release): return getSrcPkg('debian', name, release)