summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2007-05-30 02:23:36 +0000
committerZac Medico <zmedico@gentoo.org>2007-05-30 02:23:36 +0000
commitcc076b03ce16db9b139b8e4ec63174fddf883468 (patch)
tree21114e840e3a045018504cdf396a6382057cb1f2
parent3bde1a583b097d9edf6cf0fbd1d3649c899bac2c (diff)
downloadportage-cc076b03ce16db9b139b8e4ec63174fddf883468.tar.gz
portage-cc076b03ce16db9b139b8e4ec63174fddf883468.tar.bz2
portage-cc076b03ce16db9b139b8e4ec63174fddf883468.zip
Fix slot handling at the beginning of match_from_list().
svn path=/main/trunk/; revision=6669
-rw-r--r--pym/portage/dep.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/pym/portage/dep.py b/pym/portage/dep.py
index 1252b5d26..1864f1983 100644
--- a/pym/portage/dep.py
+++ b/pym/portage/dep.py
@@ -635,13 +635,12 @@ def match_from_list(mydep, candidate_list):
mycpv = dep_getcpv(mydep)
mycpv_cps = catpkgsplit(mycpv) # Can be None if not specific
- slot = None
+ slot = dep_getslot(mydep)
if not mycpv_cps:
cat, pkg = catsplit(mycpv)
ver = None
rev = None
- slot = dep_getslot(mydep)
else:
cat, pkg, ver, rev = mycpv_cps
if mydep == mycpv: