From: Zac Medico Date: Wed, 9 Nov 2011 03:23:22 +0000 (-0800) Subject: depgraph: fix possible REQUIRED_USE KeyError X-Git-Tag: v2.2.0_alpha73~4 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=6245e82305818d36eaa0a5392cb78de791f5e00a;p=portage.git depgraph: fix possible REQUIRED_USE KeyError This goes with commit a0961708ced50c90497811058eda6f4513d2986d. --- diff --git a/pym/_emerge/depgraph.py b/pym/_emerge/depgraph.py index 301b25210..2296aa001 100644 --- a/pym/_emerge/depgraph.py +++ b/pym/_emerge/depgraph.py @@ -3114,7 +3114,7 @@ class depgraph(object): if untouchable_flags.intersection(involved_flags): continue - required_use = myparent.metadata["REQUIRED_USE"] + required_use = myparent.metadata.get("REQUIRED_USE") required_use_warning = "" if required_use: old_use = self._pkg_use_enabled(myparent)