ubuntutools/requestsync/mail.py: Rename SourcePackage to

SourcePackagePublishingHistory to be in line with the lpapicache module.
This commit is contained in:
Michael Bienia 2009-08-06 16:26:29 +02:00
parent 0e4604eeb7
commit ce4e0932a5

View File

@ -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)