when fetching remote binary packages. #116276
svn path=/main/trunk/; revision=2419
if portage.db[portage.root]["bintree"].isremote(x[2]):
short_msg = "emerge: ("+str(mergecount)+" of "+str(len(mymergelist))+") "+x[pkgindex]+" Fetch"
emergelog(" --- ("+str(mergecount)+" of "+str(len(mymergelist))+") Fetching Binary ("+x[pkgindex]+"::"+mytbz2+")", short_msg=short_msg)
- portage.db[portage.root]["bintree"].gettbz2(x[2])
+ if not portage.db[portage.root]["bintree"].gettbz2(x[2]):
+ sys.exit(1)
if ("--fetchonly" in myopts) or ("--fetch-all-uri" in myopts):
continue
myargs = [os.path.basename(mycmd)]+mysplit[1:]
mypid=os.fork()
if mypid == 0:
- os.execv(mycmd,myargs)
+ try:
+ os.execv(mycmd,myargs)
+ except OSError:
+ pass
sys.stderr.write("!!! Failed to spawn fetcher.\n")
sys.exit(1)
retval=os.waitpid(mypid,0)[1]
raise
except:
pass
- getbinpkg.file_get(settings["PORTAGE_BINHOST"]+"/"+tbz2name, mydest, fcmd=settings["RESUMECOMMAND"])
- return
+ return getbinpkg.file_get(settings["PORTAGE_BINHOST"]+"/"+tbz2name, mydest, fcmd=settings["RESUMECOMMAND"])
def getslot(self,mycatpkg):
"Get a slot for a catpkg; assume it exists."