summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--pym/portage/sets/__init__.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/pym/portage/sets/__init__.py b/pym/portage/sets/__init__.py
index 01ce66055..ab67642b8 100644
--- a/pym/portage/sets/__init__.py
+++ b/pym/portage/sets/__init__.py
@@ -161,7 +161,10 @@ class SetConfig(object):
if ignorelist is None:
ignorelist = set()
- if not setname in ignorelist:
+
+ # If sets.conf is corrupt then emerge generates
+ # fallback sets without the 'creator' attribute.
+ if setname not in ignorelist and hasattr(myset, 'creator'):
if parser.has_option(myset.creator, "extend"):
extend.update(parser.get(myset.creator, "extend").split())
if parser.has_option(myset.creator, "remove"):