summaryrefslogtreecommitdiffstats
path: root/pym/_emerge
diff options
context:
space:
mode:
Diffstat (limited to 'pym/_emerge')
-rw-r--r--pym/_emerge/Package.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/pym/_emerge/Package.py b/pym/_emerge/Package.py
index 1671c4ef7..f504216e2 100644
--- a/pym/_emerge/Package.py
+++ b/pym/_emerge/Package.py
@@ -52,7 +52,7 @@ class Package(Task):
not eapi_has_iuse_defaults(self.metadata["EAPI"]):
self._invalid_metadata('IUSE.invalid',
"IUSE contains defaults, but EAPI doesn't allow them")
- if self.metadata["REQUIRED_USE"] and \
+ if self.metadata.get("REQUIRED_USE") and \
not eapi_has_required_use(self.metadata["EAPI"]):
self._invalid_metadata('REQUIRED_USE.invalid',
"REQUIRED_USE set, but EAPI doesn't allow it")