Fix broken SRC_URI logic from the previous commit.
authorZac Medico <zmedico@gentoo.org>
Thu, 7 Dec 2006 06:27:40 +0000 (06:27 -0000)
committerZac Medico <zmedico@gentoo.org>
Thu, 7 Dec 2006 06:27:40 +0000 (06:27 -0000)
svn path=/main/trunk/; revision=5198

pym/portage.py

index 44206c34e3bd2ca823279bd634bebae0624c2369..fa21a33c7ca61cfa2307c329bac9aea8ef5e4b3f 100644 (file)
@@ -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)