mirror of
https://git.launchpad.net/ubuntu-dev-tools
synced 2025-03-14 00:21:08 +00:00
In ubuntutools/archive.py, instead of an AssertionError liburi-perl is not installed provide a similar message to the one rmadison provides.
This commit is contained in:
parent
e3ea0c9b97
commit
f5ce76d52e
@ -519,7 +519,10 @@ def rmadison(url, package, suite=None, arch=None):
|
||||
process = subprocess.Popen(cmd, stdout=subprocess.PIPE,
|
||||
stderr=subprocess.PIPE, close_fds=True)
|
||||
output = process.communicate()[0]
|
||||
assert process.wait() == 0
|
||||
try:
|
||||
assert process.wait() == 0
|
||||
except AssertionError:
|
||||
print "Request failed: install the liburi-perl package and try again."
|
||||
|
||||
# rmadison uses some shorthand
|
||||
if suite:
|
||||
|
Loading…
x
Reference in New Issue
Block a user