* requestsync: Reverted old madison.php workaround (LP: #183346).

This commit is contained in:
Jonathan Davies 2009-03-14 12:16:32 +00:00
parent 2815680714
commit 2cfb651336
2 changed files with 8 additions and 2 deletions

1
debian/changelog vendored
View File

@ -3,6 +3,7 @@ ubuntu-dev-tools (0.67) UNRELEASED; urgency=low
* mk-sbuild-lv: Changed default behaviour so that the initial build and log
directories are not created on first run; instead read settings file and
check if they exist (LP: #342154).
* requestsync: Reverted old madison.php workaround (LP: #183346).
-- Jonathan Davies <jpds@ubuntu.com> Mon, 09 Mar 2009 16:03:09 +0000

View File

@ -179,8 +179,13 @@ def cur_deb_version(sourcepkg, distro):
except AssertionError:
print "%s doesn't appear to exist in Debian." % sourcepkg
sys.exit(1)
return out.split('|')[1].strip()
# 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()
def debian_changelog(sourcepkg, component, version):
'''Return the Debian changelog from the latest up to the given version