diff --git a/debian/changelog b/debian/changelog index 79807ec..2b6d204 100644 --- a/debian/changelog +++ b/debian/changelog @@ -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 Thu, 17 Jan 2008 13:42:35 +0100 + ubuntu-dev-tools (0.24) hardy; urgency=low [ Soren Hansen ] diff --git a/requestsync b/requestsync index 7d8b40b..244db44 100755 --- a/requestsync +++ b/requestsync @@ -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()