diff options
author | Zac Medico <zmedico@gentoo.org> | 2010-07-27 00:10:15 -0700 |
---|---|---|
committer | Zac Medico <zmedico@gentoo.org> | 2010-07-27 00:10:15 -0700 |
commit | 3914366fc40ed4d5971547cf0bfd035fe0f70cc6 (patch) | |
tree | faf8d1810904ce32346f88037ed64970dd2ac0d2 | |
parent | 33be46793e851e19d2c250522e85a0f4d4034ef8 (diff) | |
download | portage-3914366fc40ed4d5971547cf0bfd035fe0f70cc6.tar.gz portage-3914366fc40ed4d5971547cf0bfd035fe0f70cc6.tar.bz2 portage-3914366fc40ed4d5971547cf0bfd035fe0f70cc6.zip |
Fix PackageSet._updateAtomMap() to use ExtendedAtomDict.setdefault()
since ExtendedAtomDict__getitem__ doesn't allow modification of
items.
-rw-r--r-- | pym/portage/sets/base.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/pym/portage/sets/base.py b/pym/portage/sets/base.py index a143b8272..33850574d 100644 --- a/pym/portage/sets/base.py +++ b/pym/portage/sets/base.py @@ -109,8 +109,7 @@ class PackageSet(object): self._atommap.clear() atoms = self._atoms for a in atoms: - self._atommap.setdefault(a.cp, set()) - self._atommap[a.cp].add(a) + self._atommap.setdefault(a.cp, set()).add(a) # Not sure if this one should really be in PackageSet def findAtomForPackage(self, pkg): |