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 /layman/action.py | |
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).
Diffstat (limited to 'layman/action.py')
-rw-r--r-- | layman/action.py | 19 |
1 files changed, 12 insertions, 7 deletions
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 |