summaryrefslogtreecommitdiffstats
path: root/pym
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2007-05-28 22:16:36 +0000
committerZac Medico <zmedico@gentoo.org>2007-05-28 22:16:36 +0000
commitcb6cc34cc5b9f7783de1c8c99336738ebb0a28d5 (patch)
treea1f503ab58bc4681825b93ddfa6bf83ed0ebc073 /pym
parent0ba7c3e6ec23ec15453418f146194f46b1369035 (diff)
downloadportage-cb6cc34cc5b9f7783de1c8c99336738ebb0a28d5.tar.gz
portage-cb6cc34cc5b9f7783de1c8c99336738ebb0a28d5.tar.bz2
portage-cb6cc34cc5b9f7783de1c8c99336738ebb0a28d5.zip
Include IUSE in the Package index so that it can be used for --newuse calculations.
svn path=/main/trunk/; revision=6655
Diffstat (limited to 'pym')
-rw-r--r--pym/portage/dbapi/bintree.py3
1 files changed, 2 insertions, 1 deletions
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"]