ubuntutools.archive.rmadison: suite can be None, handle this correctly.

This commit is contained in:
Stefano Rivera 2011-03-28 13:09:13 +02:00
parent de373f2ddc
commit 5bb84b1548
2 changed files with 7 additions and 2 deletions

4
debian/changelog vendored
View File

@ -1,8 +1,12 @@
ubuntu-dev-tools (0.121) UNRELEASED; urgency=low
[ Daniel Holbach ]
* harvest, setup.py: install tool that queries Harvest for information
about open opportunities for a given source package.
[ Stefano Rivera ]
* ubuntutools.archive.rmadison: suite can be None, handle this correctly.
-- Daniel Holbach <daniel.holbach@ubuntu.com> Mon, 21 Mar 2011 12:24:56 +0100
ubuntu-dev-tools (0.120) unstable; urgency=low

View File

@ -522,6 +522,7 @@ def rmadison(url, package, suite=None, arch=None):
assert process.wait() == 0
# rmadison uses some shorthand
if suite:
suite = suite.replace('-proposed-updates', '-p-u')
for line in output.strip().splitlines():
@ -534,7 +535,7 @@ def rmadison(url, package, suite=None, arch=None):
# 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:
if suite and dist != suite:
continue
if 'source' in archs: