diff options
-rw-r--r-- | pym/portage.py | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/pym/portage.py b/pym/portage.py index 23e70e49c..1fe608a28 100644 --- a/pym/portage.py +++ b/pym/portage.py @@ -1245,12 +1245,10 @@ class config: self.lookuplist.reverse() # Blacklist vars that could interfere with portage internals. - for blacklisted in ["PKGUSE", "PORTAGE_CONFIGROOT", "ROOT"]: + for blacklisted in "CATEGORY", "PKGUSE", "PORTAGE_CONFIGROOT", \ + "ROOT": for cfg in self.lookuplist: - try: - del cfg[blacklisted] - except KeyError: - pass + cfg.pop(blacklisted, None) del blacklisted, cfg if target_root is None: |