summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2007-07-17 04:35:22 +0000
committerZac Medico <zmedico@gentoo.org>2007-07-17 04:35:22 +0000
commit376ae4c89da056cd929781d6437e9bb213fea9d7 (patch)
treeb90f157092204a025b76c128f14f5011f7c5d46e
parent97a922a3fd8150c8fb1a359e61d93ffc638f8e3e (diff)
downloadportage-376ae4c89da056cd929781d6437e9bb213fea9d7.tar.gz
portage-376ae4c89da056cd929781d6437e9bb213fea9d7.tar.bz2
portage-376ae4c89da056cd929781d6437e9bb213fea9d7.zip
Make sure the atoms are loaded when calling PackageSet.findAtomForPackage().
svn path=/main/trunk/; revision=7289
-rw-r--r--pym/portage/sets/__init__.py1
1 files changed, 1 insertions, 0 deletions
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)