From: Zac Medico Date: Mon, 28 May 2007 22:16:36 +0000 (-0000) Subject: Include IUSE in the Package index so that it can be used for --newuse calculations. X-Git-Tag: v2.2_pre1~1347 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=cb6cc34cc5b9f7783de1c8c99336738ebb0a28d5;p=portage.git Include IUSE in the Package index so that it can be used for --newuse calculations. svn path=/main/trunk/; revision=6655 --- diff --git a/pym/portage/dbapi/bintree.py b/pym/portage/dbapi/bintree.py index 434480e48..0589c75b8 100644 --- a/pym/portage/dbapi/bintree.py +++ b/pym/portage/dbapi/bintree.py @@ -647,7 +647,8 @@ class binarytree(object): use = d["USE"].split() iuse = set(d["IUSE"].split()) use = [f for f in use if f in iuse] - del iuse, d["IUSE"] + if not iuse: + del d["IUSE"] use.sort() d["USE"] = " ".join(use) d["DESC"] = d["DESCRIPTION"]