Catch SeriesNotFoundException and display a friendly error (LP: #963888)

This commit is contained in:
Stefano Rivera 2012-03-28 23:51:17 +02:00
parent d9bf247dee
commit 42a76abaa7
2 changed files with 7 additions and 0 deletions

1
debian/changelog vendored
View File

@ -11,6 +11,7 @@ ubuntu-dev-tools (0.140) UNRELEASED; urgency=low
(LP: #693217) (LP: #693217)
* requestsync: * requestsync:
- New packages from non-free or contrib go into multiverse (LP: #935643) - New packages from non-free or contrib go into multiverse (LP: #935643)
- Catch SeriesNotFoundException and display a friendly error (LP: #963888)
[ Daniel Hahler ] [ Daniel Hahler ]
* ubuntutools/archive.py: use ProxyHandler in _download_file. * ubuntutools/archive.py: use ProxyHandler in _download_file.

View File

@ -217,6 +217,9 @@ def main():
% (srcpkg, release)) % (srcpkg, release))
confirmation_prompt() confirmation_prompt()
newsource = True newsource = True
except udtexceptions.SeriesNotFoundException, error:
print >> sys.stderr, "E: %s" % error
sys.exit(1)
# Get the requested Debian source package # Get the requested Debian source package
try: try:
@ -226,6 +229,9 @@ def main():
except udtexceptions.PackageNotFoundException, error: except udtexceptions.PackageNotFoundException, error:
print >> sys.stderr, "E: %s" % error print >> sys.stderr, "E: %s" % error
sys.exit(1) sys.exit(1)
except udtexceptions.SeriesNotFoundException, error:
print >> sys.stderr, "E: %s" % error
sys.exit(1)
if ubuntu_component is None: if ubuntu_component is None:
if debian_component == 'main': if debian_component == 'main':