diff options
-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 |