From cb6cc34cc5b9f7783de1c8c99336738ebb0a28d5 Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Mon, 28 May 2007 22:16:36 +0000 Subject: [PATCH] Include IUSE in the Package index so that it can be used for --newuse calculations. svn path=/main/trunk/; revision=6655 --- pym/portage/dbapi/bintree.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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"] -- 2.26.2