From 3914366fc40ed4d5971547cf0bfd035fe0f70cc6 Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Tue, 27 Jul 2010 00:10:15 -0700 Subject: [PATCH] Fix PackageSet._updateAtomMap() to use ExtendedAtomDict.setdefault() since ExtendedAtomDict__getitem__ doesn't allow modification of items. --- pym/portage/sets/base.py | 3 +-- 1 file changed, 1 insertion(+), 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): -- 2.26.2