From: Zac Medico Date: Tue, 27 Jul 2010 07:10:15 +0000 (-0700) Subject: Fix PackageSet._updateAtomMap() to use ExtendedAtomDict.setdefault() X-Git-Tag: v2.2_rc68~448 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=3914366fc40ed4d5971547cf0bfd035fe0f70cc6;p=portage.git Fix PackageSet._updateAtomMap() to use ExtendedAtomDict.setdefault() since ExtendedAtomDict__getitem__ doesn't allow modification of items. --- 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):