summaryrefslogtreecommitdiffstats
path: root/layman/action.py
diff options
context:
space:
mode:
Diffstat (limited to 'layman/action.py')
-rw-r--r--layman/action.py19
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