diff options
-rw-r--r-- | pym/portage/sets/__init__.py | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/pym/portage/sets/__init__.py b/pym/portage/sets/__init__.py index d72c5c4f0..163e84eaf 100644 --- a/pym/portage/sets/__init__.py +++ b/pym/portage/sets/__init__.py @@ -114,12 +114,9 @@ class PackageSet(object): return None class EditablePackageSet(PackageSet): - def getAtoms(self): - self.load() - return self._atoms def update(self, atoms): - self.load() + self.getAtoms() self._atoms.update(atoms) self._updateAtomMap() self.write() @@ -132,13 +129,12 @@ class EditablePackageSet(PackageSet): self.write() def remove(self, atom): - self.load() + self.getAtoms() self._atoms.discard(atom) self._updateAtomMap() self.write() def removePackageAtoms(self, cp): - self.load() for a in self.getAtoms(): if dep_getkey(a) == cp: self.remove(a) |