From a2a86b6796097c809842556d44447973fd9c27df Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Wed, 13 Sep 2006 20:42:53 +0000 Subject: For correct LINGUAS handling, don't export empty USE_EXPAND variables unless the user config exports them as empty. Thanks to Harald van Dijk for this patch from bug #147428. svn path=/main/trunk/; revision=4441 --- pym/portage.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'pym') diff --git a/pym/portage.py b/pym/portage.py index af2ddb8ba..821edb81f 100644 --- a/pym/portage.py +++ b/pym/portage.py @@ -1609,7 +1609,11 @@ class config: # like LINGUAS. var_split = [ x for x in var_split if x in expand_flags ] var_split.extend(expand_flags.difference(var_split)) - self[var] = " ".join(var_split) + if var_split or var in self: + # Don't export empty USE_EXPAND vars unless the user config + # exports them as empty. This is required for vars such as + # LINGUAS, where unset and empty have different meanings. + self[var] = " ".join(var_split) # Pre-Pend ARCH variable to USE settings so '-*' in env doesn't kill arch. if self.configdict["defaults"].has_key("ARCH"): -- cgit v1.2.3-1-g7c22