Include IUSE in the Package index so that it can be used for --newuse calculations.
authorZac Medico <zmedico@gentoo.org>
Mon, 28 May 2007 22:16:36 +0000 (22:16 -0000)
committerZac Medico <zmedico@gentoo.org>
Mon, 28 May 2007 22:16:36 +0000 (22:16 -0000)
svn path=/main/trunk/; revision=6655

pym/portage/dbapi/bintree.py

index 434480e48ff7e383a7855123f4840d4cd848e07f..0589c75b811c1a81a256f184284d500beffbb1c6 100644 (file)
@@ -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"]