mirror of
https://git.launchpad.net/ubuntu-dev-tools
synced 2025-03-24 17:31:09 +00:00
ubuntutools/requestsync/mail.py: Rename SourcePackage to
SourcePackagePublishingHistory to be in line with the lpapicache module.
This commit is contained in:
parent
0e4604eeb7
commit
ce4e0932a5
@ -24,10 +24,10 @@ from ..lp.udtexceptions import PackageNotFoundException
|
|||||||
|
|
||||||
__all__ = ['getDebianSrcPkg', 'getUbuntuSrcPkg']
|
__all__ = ['getDebianSrcPkg', 'getUbuntuSrcPkg']
|
||||||
|
|
||||||
# Simulate the SourcePackage class from lpapiwrapper
|
class SourcePackagePublishingHistory(object):
|
||||||
class SourcePackage(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):
|
def __init__(self, name, version, component):
|
||||||
self.name = name
|
self.name = name
|
||||||
@ -72,7 +72,7 @@ def getSrcPkg(distro, name, release):
|
|||||||
if len(raw_comp) == 2:
|
if len(raw_comp) == 2:
|
||||||
component = raw_comp[1]
|
component = raw_comp[1]
|
||||||
|
|
||||||
return SourcePackage(name, version, component)
|
return SourcePackagePublishingHistory(name, version, component)
|
||||||
|
|
||||||
def getDebianSrcPkg(name, release):
|
def getDebianSrcPkg(name, release):
|
||||||
return getSrcPkg('debian', name, release)
|
return getSrcPkg('debian', name, release)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user