projects
/
portage.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2786519
)
Bug #335055 - Fix "TypeError: argument of type 'NoneType' is not
author
Zac Medico
<zmedico@gentoo.org>
Sat, 28 Aug 2010 20:39:44 +0000
(13:39 -0700)
committer
Zac Medico
<zmedico@gentoo.org>
Sat, 28 Aug 2010 20:39:44 +0000
(13:39 -0700)
iterable" raised from first call to VirtualsManager.get_virts_p()
when trying to expand the category for a package name.
pym/portage/package/ebuild/_config/VirtualsManager.py
patch
|
blob
|
history
diff --git
a/pym/portage/package/ebuild/_config/VirtualsManager.py
b/pym/portage/package/ebuild/_config/VirtualsManager.py
index f9b947145699c4415e7824c290ea38e0a0f2cf26..79b351ab42d12b5ba00bddf3e0cc351457292f2f 100644
(file)
--- a/
pym/portage/package/ebuild/_config/VirtualsManager.py
+++ b/
pym/portage/package/ebuild/_config/VirtualsManager.py
@@
-223,10
+223,11
@@
class VirtualsManager(object):
if self._virts_p is not None:
return self._virts_p
- self._virts_p = {}
virts = self.getvirtuals()
+ virts_p = {}
for x in virts:
vkeysplit = x.split("/")
- if vkeysplit[1] not in self._virts_p:
- self._virts_p[vkeysplit[1]] = virts[x]
- return self._virts_p
+ if vkeysplit[1] not in virts_p:
+ virts_p[vkeysplit[1]] = virts[x]
+ self._virts_p = virts_p
+ return virts_p