summaryrefslogtreecommitdiffstats
path: root/pym
diff options
context:
space:
mode:
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"]