From 6245e82305818d36eaa0a5392cb78de791f5e00a Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Tue, 8 Nov 2011 19:23:22 -0800 Subject: [PATCH] depgraph: fix possible REQUIRED_USE KeyError This goes with commit a0961708ced50c90497811058eda6f4513d2986d. --- pym/_emerge/depgraph.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) -- 2.26.2