From: Zac Medico Date: Mon, 7 Apr 2008 06:32:16 +0000 (-0000) Subject: Fix broken IUSE defaults handling when filtering USE for the Packages file. X-Git-Tag: v2.2_pre6~230 X-Git-Url: http://git.tremily.us/gitweb.cgi?a=commitdiff_plain;h=722281a0befdf334df40df48f8b71f797ed3248d;p=portage.git Fix broken IUSE defaults handling when filtering USE for the Packages file. svn path=/main/trunk/; revision=9739 --- 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)