Make sure the atoms are loaded when calling PackageSet.findAtomForPackage().
authorZac Medico <zmedico@gentoo.org>
Tue, 17 Jul 2007 04:35:22 +0000 (04:35 -0000)
committerZac Medico <zmedico@gentoo.org>
Tue, 17 Jul 2007 04:35:22 +0000 (04:35 -0000)
svn path=/main/trunk/; revision=7289

pym/portage/sets/__init__.py

index eaabd32dfa3e1375f368aecabfbd1bb76ea98415..8d488fa9361bbca5a4834f1527e82f3364631b2c 100644 (file)
@@ -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)