mirror of
https://git.launchpad.net/ubuntu-dev-tools
synced 2025-03-12 23:51:08 +00:00
requestsync: catch AssertionError exception if rmadison returns with an error.
This commit is contained in:
parent
c1b9bd2081
commit
e76337f142
6
debian/changelog
vendored
6
debian/changelog
vendored
@ -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 <rainct@ubuntu.com> Sat, 10 Jan 2009 14:35:14 +0100
|
||||
[ Luca Falavigna ]
|
||||
* requestsync:
|
||||
- Catch AssertionError exception if rmadison returns with an error.
|
||||
|
||||
-- Luca Falavigna <dktrkranz@ubuntu.com> Mon, 12 Jan 2009 20:28:01 +0100
|
||||
|
||||
ubuntu-dev-tools (0.51) jaunty; urgency=low
|
||||
|
||||
|
@ -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('|')
|
||||
|
Loading…
x
Reference in New Issue
Block a user