From: Zac Medico Date: Thu, 7 Dec 2006 06:38:03 +0000 (-0000) Subject: Fix broken SRC_URI logic in doebuild. X-Git-Tag: v2.1.2~381 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=bd0d8eac42c99514fb3caf40322e6be83555561d;p=portage.git Fix broken SRC_URI logic in doebuild. svn path=/main/trunk/; revision=5199 --- diff --git a/pym/portage.py b/pym/portage.py index fa21a33c7..7ff156315 100644 --- a/pym/portage.py +++ b/pym/portage.py @@ -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[:]