From f7b999960880c1540a683f2ba5b48da3d0958385 Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Sun, 6 Aug 2006 00:18:01 +0000 Subject: Allow USE_EXPAND vars to be overridden in the environment for bug #142909. svn path=/main/trunk/; revision=4175 --- pym/portage.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'pym') diff --git a/pym/portage.py b/pym/portage.py index 9d5b25cf7..3da97fc51 100644 --- a/pym/portage.py +++ b/pym/portage.py @@ -1479,10 +1479,10 @@ class config: myflags=[] for curdb in mydbs: - if not curdb.has_key(mykey): + if mykey not in curdb and mykey != "USE": continue #variables are already expanded - mysplit=curdb[mykey].split() + mysplit = curdb.get(mykey, "").split() if mykey == "USE": for var in use_expand: -- cgit v1.2.3-1-g7c22