* Add work-around for a bug(?) in Debian's madison.php (LP: #183346)

This commit is contained in:
Michael Bienia 2008-01-17 18:40:17 +01:00
parent 197a4a014e
commit b531767097
2 changed files with 13 additions and 0 deletions

7
debian/changelog vendored
View File

@ -1,3 +1,10 @@
ubuntu-dev-tools (0.25) UNRELEASED; urgency=low
* Add work-around for a bug in Debian's madison.php not returning only the
'source' line (LP: #183346).
-- Michael Bienia <geser@ubuntu.com> Thu, 17 Jan 2008 13:42:35 +0100
ubuntu-dev-tools (0.24) hardy; urgency=low
[ Soren Hansen ]

View File

@ -41,6 +41,12 @@ def cur_deb_version(sourcepkg):
except AssertionError:
print "%s doesn't appear to exist in Debian." % sourcepkg
sys.exit(1)
# Work-around for a bug in Debians madison.php script not returning
# only the source line
for line in out.splitlines():
if line.find('source') > 0:
out = line
return out.split('|')[1].rstrip('[]''').strip()