From: Zac Medico Date: Fri, 19 Nov 2010 23:21:53 +0000 (-0800) Subject: Handle combination of incremental + USE_EXPAND X-Git-Tag: v2.2.0_alpha5~15 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=b20c1f019a32b50e95f6fa40cd78021d62249d4b;p=portage.git Handle combination of incremental + USE_EXPAND This fixes a corner case in the code from the previous commit. --- diff --git a/pym/portage/package/ebuild/config.py b/pym/portage/package/ebuild/config.py index 5ece5b0f3..6c513c696 100644 --- a/pym/portage/package/ebuild/config.py +++ b/pym/portage/package/ebuild/config.py @@ -1746,8 +1746,15 @@ class config(object): if v is None: continue prefix = k.lower() + '_' - for x in v.split(): - expand_use.append(prefix + x) + if k in myincrementals: + for x in v.split(): + if x[:1] == '-': + expand_use.append('-' + prefix + x[1:]) + else: + expand_use.append(prefix + x) + else: + for x in v.split(): + expand_use.append(prefix + x) if expand_use: expand_use.append(use) use = ' '.join(expand_use)