summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--pym/portage/sets/dbapi.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/pym/portage/sets/dbapi.py b/pym/portage/sets/dbapi.py
index bacc3a5c5..5352a32f3 100644
--- a/pym/portage/sets/dbapi.py
+++ b/pym/portage/sets/dbapi.py
@@ -70,7 +70,7 @@ class CategorySet(PackageSet):
raise SetConfigError("no category given")
category = options["category"]
- if not category in categories:
+ if not category in settings.categories:
raise SetConfigError("invalid category name '%s'" % category)
repository = cls._builderGetRepository(options, trees.keys())