From: Zac Medico Date: Thu, 7 Dec 2006 06:27:40 +0000 (-0000) Subject: Fix broken SRC_URI logic from the previous commit. X-Git-Tag: v2.1.2~382 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=9b316e795d223299ed045feea9ae72d1750611b4;p=portage.git Fix broken SRC_URI logic from the previous commit. svn path=/main/trunk/; revision=5198 --- diff --git a/pym/portage.py b/pym/portage.py index 44206c34e..fa21a33c7 100644 --- a/pym/portage.py +++ b/pym/portage.py @@ -2506,9 +2506,9 @@ def digestgen(myarchives, mysettings, overwrite=1, manifestonly=0, myportdb=None alluris, aalist = myportdb.getfetchlist( cpv, mytree=mytree, all=True, mysettings=mysettings) - for i in xrange(len(aalist)): - if aalist[i] == myfile: - myuris.append(alluris[i]) + for uri in alluris: + if os.path.basename(uri) == myfile: + myuris.append(uri) if not fetch(myuris, mysettings): writemsg("!!! File %s doesn't exist, can't update " + \ "Manifest\n" % myfile, noiselevel=-1)