projects
/
portage.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0ba7c3e
)
Include IUSE in the Package index so that it can be used for --newuse calculations.
author
Zac Medico
<zmedico@gentoo.org>
Mon, 28 May 2007 22:16:36 +0000
(22:16 -0000)
committer
Zac 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
patch
|
blob
|
history
diff --git
a/pym/portage/dbapi/bintree.py
b/pym/portage/dbapi/bintree.py
index 434480e48ff7e383a7855123f4840d4cd848e07f..0589c75b811c1a81a256f184284d500beffbb1c6 100644
(file)
--- 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"]