mirror of
https://git.launchpad.net/ubuntu-dev-tools
synced 2025-05-17 03:41:28 +00:00
ubuntutools.archive: Filter rmadison results. (LP: #710579)
This commit is contained in:
parent
e85a6f604f
commit
a93078cb32
3
debian/changelog
vendored
3
debian/changelog
vendored
@ -3,6 +3,9 @@ ubuntu-dev-tools (0.120) UNRELEASED; urgency=low
|
|||||||
[ Felix Geyer ]
|
[ Felix Geyer ]
|
||||||
* pull-lp-source.1: Document -d option.
|
* pull-lp-source.1: Document -d option.
|
||||||
|
|
||||||
|
[ Stefano Rivera ]
|
||||||
|
* ubuntutools.archive: Filter rmadison results. (LP: #710579)
|
||||||
|
|
||||||
-- Stefano Rivera <stefanor@debian.org> Wed, 02 Mar 2011 12:34:04 +0200
|
-- Stefano Rivera <stefanor@debian.org> Wed, 02 Mar 2011 12:34:04 +0200
|
||||||
|
|
||||||
ubuntu-dev-tools (0.119) unstable; urgency=low
|
ubuntu-dev-tools (0.119) unstable; urgency=low
|
||||||
|
@ -526,6 +526,13 @@ def rmadison(url, package, suite=None, arch=None):
|
|||||||
if '/' in dist:
|
if '/' in dist:
|
||||||
dist, comp = dist.split('/')
|
dist, comp = dist.split('/')
|
||||||
archs = set(x.strip() for x in archs.split(','))
|
archs = set(x.strip() for x in archs.split(','))
|
||||||
|
|
||||||
|
# rmadison returns some results outside the requested set.
|
||||||
|
# It'll include backports, and when given an unknown suite,
|
||||||
|
# it ignores that argument
|
||||||
|
if dist != suite:
|
||||||
|
continue
|
||||||
|
|
||||||
if 'source' in archs:
|
if 'source' in archs:
|
||||||
yield {
|
yield {
|
||||||
'source': pkg,
|
'source': pkg,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user