--- portage.py.orig 2004-07-09 19:24:11.000000000 +0200 +++ portage.py 2004-07-09 19:35:14.000000000 +0200 @@ -1700,6 +1700,9 @@ else: filedict[myfile].append(myuri) for myfile in filedict.keys(): + writemsg(">>> Locking "+myfile+"..."); + mylock=lockfile(mysettings["BUILD_PREFIX"]+"/"+myfile+".lockfile",1); + writemsg("done.\n"); if listonly: fetched=0 writemsg("\n") @@ -1793,6 +1796,8 @@ if not myret: fetched=2 break + writemsg(">>> Releasing lock.\n"); + unlockfile(mylock); if (fetched!=2) and not listonly: writemsg("!!! Couldn't download "+str(myfile)+". Aborting.\n") return 0