summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2008-04-07 06:32:16 +0000
committerZac Medico <zmedico@gentoo.org>2008-04-07 06:32:16 +0000
commit722281a0befdf334df40df48f8b71f797ed3248d (patch)
treef27bdcb5529db401c789bb8b1e176871679df1e6
parent6df54199312a1d6d628cd0a852f4b667d8ad833a (diff)
downloadportage-722281a0befdf334df40df48f8b71f797ed3248d.tar.gz
portage-722281a0befdf334df40df48f8b71f797ed3248d.tar.bz2
portage-722281a0befdf334df40df48f8b71f797ed3248d.zip
Fix broken IUSE defaults handling when filtering USE for the Packages file.
svn path=/main/trunk/; revision=9739
-rw-r--r--pym/portage/dbapi/bintree.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/pym/portage/dbapi/bintree.py b/pym/portage/dbapi/bintree.py
index f920c0fab..f58e220af 100644
--- a/pym/portage/dbapi/bintree.py
+++ b/pym/portage/dbapi/bintree.py
@@ -837,7 +837,7 @@ class binarytree(object):
del metadata["DESCRIPTION"]
use = metadata["USE"].split()
raw_use = use
- iuse = set(metadata["IUSE"].split())
+ iuse = set(f.lstrip("-+") for f in metadata["IUSE"].split())
use = [f for f in use if f in iuse]
use.sort()
metadata["USE"] = " ".join(use)