diff options
author | Zac Medico <zmedico@gentoo.org> | 2007-05-30 02:44:41 +0000 |
---|---|---|
committer | Zac Medico <zmedico@gentoo.org> | 2007-05-30 02:44:41 +0000 |
commit | 2ccc1bdd379690eeaf36181b49ec01dc294f0e36 (patch) | |
tree | 7e3fa2b1d7d8cde445b0990fca9bba92aeafbb29 /pym | |
parent | b4c02761c93b4a68dd7166366e332734e7f54647 (diff) | |
download | portage-2ccc1bdd379690eeaf36181b49ec01dc294f0e36.tar.gz portage-2ccc1bdd379690eeaf36181b49ec01dc294f0e36.tar.bz2 portage-2ccc1bdd379690eeaf36181b49ec01dc294f0e36.zip |
For bug #61732, support -flag in USE (instead of just +flag). Given the current default USE_ORDER, -flag in IUSE has no effect. (trunk r6671)
svn path=/main/branches/2.1.2/; revision=6672
Diffstat (limited to 'pym')
-rw-r--r-- | pym/portage.py | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/pym/portage.py b/pym/portage.py index 83edfeaa9..ecf14c703 100644 --- a/pym/portage.py +++ b/pym/portage.py @@ -1682,7 +1682,12 @@ class config: if mydb: slot, iuse = mydb.aux_get(self.mycpv, ["SLOT", "IUSE"]) cpv_slot = "%s:%s" % (self.mycpv, slot) - pkginternaluse = [x[1:] for x in iuse.split() if x.startswith("+")] + pkginternaluse = [] + for x in iuse.split(): + if x.startswith("+"): + pkginternaluse.append(x[1:]) + elif x.startswith("-"): + pkginternaluse.append(x) pkginternaluse = " ".join(pkginternaluse) if pkginternaluse != self.configdict["pkginternal"].get("USE", ""): self.configdict["pkginternal"]["USE"] = pkginternaluse |