Fix broken SRC_URI logic in doebuild.
authorZac Medico <zmedico@gentoo.org>
Thu, 7 Dec 2006 06:38:03 +0000 (06:38 -0000)
committerZac Medico <zmedico@gentoo.org>
Thu, 7 Dec 2006 06:38:03 +0000 (06:38 -0000)
svn path=/main/trunk/; revision=5199

pym/portage.py

index fa21a33c7ca61cfa2307c329bac9aea8ef5e4b3f..7ff156315f88d7f40d0ef71f4083bd61bcb27f2c 100644 (file)
@@ -3218,13 +3218,9 @@ def doebuild(myebuild, mydo, myroot, mysettings, debug=0, listonly=0,
                        mydigests = mf.getTypeDigests("DIST")
                        for filename, hashes in mydigests.iteritems():
                                if len(hashes) == len(mf.hashes):
-                                       while True:
-                                               try:
-                                                       i = checkme.index(filename) # raises ValueError
-                                                       del fetchme[i]
-                                                       del checkme[i]
-                                               except ValueError:
-                                                       break
+                                       checkme = [i for i in checkme if i != filename]
+                                       fetchme = [i for i in fetchme \
+                                               if os.path.basename(i) != filename]
                                del filename, hashes
                else:
                        fetchme = newuris[:]