diff --git a/debian/changelog b/debian/changelog index fde29b0..6cbabe0 100644 --- a/debian/changelog +++ b/debian/changelog @@ -33,7 +33,11 @@ ubuntu-dev-tools (0.52) UNRELEASED; urgency=low * requestsync: If package is new, check the Ubuntu Archive team's bug list for possible duplicate requests. - -- Siegfried-Angel Gevatter Pujals Sat, 10 Jan 2009 14:35:14 +0100 + [ Luca Falavigna ] + * requestsync: + - Catch AssertionError exception if rmadison returns with an error. + + -- Luca Falavigna Mon, 12 Jan 2009 20:28:01 +0100 ubuntu-dev-tools (0.51) jaunty; urgency=low diff --git a/requestsync b/requestsync index dac4367..0eebdae 100755 --- a/requestsync +++ b/requestsync @@ -143,7 +143,11 @@ def cur_version_component(sourcepkg, release): madison = subprocess.Popen(['rmadison', '-u', 'ubuntu', '-a', 'source', \ '-s', release, sourcepkg], stdout=subprocess.PIPE) out = madison.communicate()[0] - assert (madison.returncode == 0) + try: + assert (madison.returncode == 0) + except AssertionError: + print out + sys.exit(1) for l in out.splitlines(): (pkg, version, rel, builds) = l.split('|')