From a92714aacc5da7c5075f1012656426616612534a Mon Sep 17 00:00:00 2001 From: "Anthony G. Basile" Date: Thu, 26 Nov 2015 14:54:53 -0500 Subject: grs/WorldConf.py: guard against / with no ebuilds. --- grs/WorldConf.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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) -- cgit v1.2.3-65-gdbad