mirror of
https://git.launchpad.net/ubuntu-dev-tools
synced 2025-03-13 08:01:09 +00:00
* lpapiwrapper.py:
- fix getUbuntuSourcePackage()
This commit is contained in:
parent
a0ae5a2e23
commit
638950f184
@ -29,6 +29,8 @@ from launchpadlib.errors import HTTPError
|
||||
from launchpadlib.resource import Entry
|
||||
from udtexceptions import PackageNotFoundException, SeriesNotFoundException, PocketDoesNotExist
|
||||
|
||||
__all__ = ['Launchpad', 'LpApiWrapper']
|
||||
|
||||
class Launchpad(object):
|
||||
''' Singleton for LP API access. '''
|
||||
__lp = None
|
||||
@ -153,7 +155,7 @@ class LpApiWrapper(object):
|
||||
if (name, series, pocket) not in cls._src_pkg:
|
||||
try:
|
||||
srcpkg = cls.getUbuntuArchive().getPublishedSources(
|
||||
source_name = name, distro_series = series, pocket = pocket,
|
||||
source_name = name, distro_series = series._series, pocket = pocket,
|
||||
status = 'Published', exact_match = True)[0]
|
||||
cls._src_pkg[(name, series, pocket)] = _SourcePackage(srcpkg)
|
||||
except IndexError:
|
||||
|
Loading…
x
Reference in New Issue
Block a user