diff options
author | Gunnar Wrobel <p@rdus.de> | 2007-11-08 19:18:01 +0000 |
---|---|---|
committer | Gunnar Wrobel <p@rdus.de> | 2007-11-08 19:18:01 +0000 |
commit | c79a8463f79cb042eacb8bc6fadc0db8b20f4c0f (patch) | |
tree | 542e206d2798055339b6e809ffe23f16fac322c4 | |
parent | 3718a4c52f8d1b09f9e3dedce1a748efbed9b933 (diff) | |
download | layman-c79a8463f79cb042eacb8bc6fadc0db8b20f4c0f.tar.gz layman-c79a8463f79cb042eacb8bc6fadc0db8b20f4c0f.tar.bz2 layman-c79a8463f79cb042eacb8bc6fadc0db8b20f4c0f.zip |
Fix Gentoo bug #198483 (http://bugs.gentoo.org/show_bug.cgi?id=198483).
-rw-r--r-- | ChangeLog | 7 | ||||
-rw-r--r-- | layman/action.py | 19 |
2 files changed, 19 insertions, 7 deletions
@@ -1,3 +1,10 @@ +2007-11-08 Gunnar Wrobel <p@rdus.de> + + * layman/action.py (Info.run): + + Catch non-existing overlay when calling --info + http://bugs.gentoo.org/show_bug.cgi?id=198483 + 2007-09-12 Gunnar Wrobel <p@rdus.de> * layman/version.py: diff --git a/layman/action.py b/layman/action.py index 428c061..d05fb1c 100644 --- a/layman/action.py +++ b/layman/action.py @@ -291,13 +291,18 @@ class Info: for i in self.selection: overlay = self.rdb.select(i) - # Is the overlay supported? - OUT.info(overlay.__str__(), 1) - if not overlay.is_official(): - OUT.warn('*** This is no official gentoo overlay ***\n', 1) - if not overlay.is_supported(): - OUT.error('*** You are lacking the necessary tools to install t' - 'his overlay ***\n') + + if overlay: + # Is the overlay supported? + OUT.info(overlay.__str__(), 1) + if not overlay.is_official(): + OUT.warn('*** This is no official gentoo overlay ***\n', 1) + if not overlay.is_supported(): + OUT.error('*** You are lacking the necessary tools to install t' + 'his overlay ***\n') + else: + OUT.warn('Overlay "' + i + '" does not exist!', 2) + result = 1 return 0 |