From: Zac Medico Date: Tue, 17 Jul 2007 04:35:22 +0000 (-0000) Subject: Make sure the atoms are loaded when calling PackageSet.findAtomForPackage(). X-Git-Tag: v2.2_pre1~1004 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=376ae4c89da056cd929781d6437e9bb213fea9d7;p=portage.git Make sure the atoms are loaded when calling PackageSet.findAtomForPackage(). svn path=/main/trunk/; revision=7289 --- diff --git a/pym/portage/sets/__init__.py b/pym/portage/sets/__init__.py index eaabd32df..8d488fa93 100644 --- a/pym/portage/sets/__init__.py +++ b/pym/portage/sets/__init__.py @@ -91,6 +91,7 @@ class PackageSet(object): if an error occurs while parsing PROVIDE.""" cpv_slot = "%s:%s" % (cpv, metadata["SLOT"]) cp = dep_getkey(cpv) + self.getAtoms() # make sure the atoms are loaded atoms = self._atommap.get(cp) if atoms: best_match = best_match_to_list(cpv_slot, atoms)