From bd0d8eac42c99514fb3caf40322e6be83555561d Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Thu, 7 Dec 2006 06:38:03 +0000 Subject: [PATCH] Fix broken SRC_URI logic in doebuild. svn path=/main/trunk/; revision=5199 --- pym/portage.py | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) 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[:] -- 2.26.2