aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--grs/WorldConf.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/grs/WorldConf.py b/grs/WorldConf.py
index 48b93af..83c2175 100644
--- a/grs/WorldConf.py
+++ b/grs/WorldConf.py
@@ -82,7 +82,11 @@ class WorldConf():
# Construct a list of canonical named files for uninstalled pkgs.
slot_atoms = []
for _cp in uninstalled:
- _cpv = portdb.cp_list(_cp)[0]
+ try:
+ _cpv = portdb.cp_list(_cp)[0]
+ except IndexError:
+ print('Package with no ebuilds: %s' % _cp)
+ continue
slotvar = portdb.aux_get(_cpv, ['SLOT'])[0]
try:
_match = re.search(r'(.+?)\/(.+)', slotvar)