Fix slot handling at the beginning of match_from_list().
authorZac Medico <zmedico@gentoo.org>
Wed, 30 May 2007 02:23:36 +0000 (02:23 -0000)
committerZac Medico <zmedico@gentoo.org>
Wed, 30 May 2007 02:23:36 +0000 (02:23 -0000)
svn path=/main/trunk/; revision=6669

pym/portage/dep.py

index 1252b5d2680fe5f9212664ad818eef244a42b1d1..1864f1983aa1fcbe8f56d57802a50fde70c04762 100644 (file)
@@ -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: