mirror of
https://git.launchpad.net/ubuntu-dev-tools
synced 2025-05-11 08:51:29 +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 launchpadlib.resource import Entry
|
||||||
from udtexceptions import PackageNotFoundException, SeriesNotFoundException, PocketDoesNotExist
|
from udtexceptions import PackageNotFoundException, SeriesNotFoundException, PocketDoesNotExist
|
||||||
|
|
||||||
|
__all__ = ['Launchpad', 'LpApiWrapper']
|
||||||
|
|
||||||
class Launchpad(object):
|
class Launchpad(object):
|
||||||
''' Singleton for LP API access. '''
|
''' Singleton for LP API access. '''
|
||||||
__lp = None
|
__lp = None
|
||||||
@ -153,7 +155,7 @@ class LpApiWrapper(object):
|
|||||||
if (name, series, pocket) not in cls._src_pkg:
|
if (name, series, pocket) not in cls._src_pkg:
|
||||||
try:
|
try:
|
||||||
srcpkg = cls.getUbuntuArchive().getPublishedSources(
|
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]
|
status = 'Published', exact_match = True)[0]
|
||||||
cls._src_pkg[(name, series, pocket)] = _SourcePackage(srcpkg)
|
cls._src_pkg[(name, series, pocket)] = _SourcePackage(srcpkg)
|
||||||
except IndexError:
|
except IndexError:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user