projects
/
portage.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
24d578f
)
When generating config.prevmaskdict, only call the Atom constructor when
author
Zac Medico
<zmedico@gentoo.org>
Mon, 21 Sep 2009 02:04:47 +0000
(
02:04
-0000)
committer
Zac Medico
<zmedico@gentoo.org>
Mon, 21 Sep 2009 02:04:47 +0000
(
02:04
-0000)
necessary.
svn path=/main/trunk/; revision=14312
pym/portage/__init__.py
patch
|
blob
|
history
diff --git
a/pym/portage/__init__.py
b/pym/portage/__init__.py
index 4b68cefb26f6b2f14d437e69841e2ecc802f1d6d..f0cc471e960fe56b581e708e9a9f68fba29753a3 100644
(file)
--- a/
pym/portage/__init__.py
+++ b/
pym/portage/__init__.py
@@
-1725,7
+1725,9
@@
class config(object):
# revmaskdict
self.prevmaskdict={}
for x in self.packages:
- x = portage.dep.Atom(x.lstrip('*'))
+ # Negative atoms are filtered by the above stack_lists() call.
+ if not isinstance(x, dep.Atom):
+ x = dep.Atom(x.lstrip('*'))
self.prevmaskdict.setdefault(x.cp, []).append(x)
self._pkeywords_list = []