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

pym/portage_dep.py

index ec590f20f03ddbbe9e0a0e40ff18f3ee33b835c0..605dabff3586592465ca781872ec8f6a642f2faf 100644 (file)
@@ -549,13 +549,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: