summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--pym/portage/package/ebuild/config.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/pym/portage/package/ebuild/config.py b/pym/portage/package/ebuild/config.py
index 095957918..7a1f640b6 100644
--- a/pym/portage/package/ebuild/config.py
+++ b/pym/portage/package/ebuild/config.py
@@ -699,6 +699,13 @@ class config(object):
os.path.join(x, "package.keywords"), recursive=1) \
for x in self.profiles]
for pkeyworddict in rawpkeywords:
+ if not pkeyworddict:
+ # Omit non-existent files from the stack. This isn't
+ # feasible for package.use (among other package.*
+ # files such as package.use.mask) since it is stacked
+ # in layers with make.defaults USE, and the layer
+ # indices need to align.
+ continue
cpdict = {}
for k, v in pkeyworddict.items():
cpdict.setdefault(k.cp, {})[k] = v