From 71ae15787f9c8cbbf9058b6ff5bc769372263c28 Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Wed, 21 Jun 2006 02:11:35 +0000 Subject: [PATCH] Remove pointless closing of stdin that is done prior to metadata transfer and use os.rename instead of spawning MOVE_BINARY (see bug #136404). This patch is from trunk r3499 and r3500. svn path=/main/branches/2.1/; revision=3561 --- bin/emerge | 5 ----- pym/portage.py | 2 +- 2 files changed, 1 insertion(+), 6 deletions(-) diff --git a/bin/emerge b/bin/emerge index fd5eb7f07..3172fad5b 100755 --- a/bin/emerge +++ b/bin/emerge @@ -2930,11 +2930,6 @@ if myaction in ["sync","metadata"] and (not "--help" in myopts): print "!!! rsync setting: ",syncuri,"not recognized; exiting." sys.exit(1) - try: # Prevent users from affecting ebuild.sh. - os.close(sys.stdin.fileno()) - except OSError, e: - pass - if updatecache_flg and \ myaction != "metadata" and \ "metadata-transfer" not in portage.settings.features: diff --git a/pym/portage.py b/pym/portage.py index c8c1570f8..43fc3d8c5 100644 --- a/pym/portage.py +++ b/pym/portage.py @@ -4533,7 +4533,7 @@ class vardbapi(dbapi): if os.path.exists(newpath): #dest already exists; keep this puppy where it is. continue - portage_exec.spawn((MOVE_BINARY, origpath, newpath), env=os.environ) + os.rename(origpath, newpath) # We need to rename the ebuild now. old_eb_path = newpath+"/"+mycpsplit[1] +"-"+mycpsplit[2] -- 2.26.2