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:
Scott Kitterman 2011-04-10 00:41:30 -04:00
parent e3ea0c9b97
commit f5ce76d52e

View File

@ -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: