Remove pointless closing of stdin that is done prior to metadata transfer and use...
authorZac Medico <zmedico@gentoo.org>
Wed, 21 Jun 2006 02:11:35 +0000 (02:11 -0000)
committerZac Medico <zmedico@gentoo.org>
Wed, 21 Jun 2006 02:11:35 +0000 (02:11 -0000)
svn path=/main/branches/2.1/; revision=3561

bin/emerge
pym/portage.py

index fd5eb7f0799c159c2edfde6b394b6bccd462be87..3172fad5be5912404428ba8aff24bcea52b49cb5 100755 (executable)
@@ -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:
index c8c1570f842e6f767d5d6a843f284b9e7beba793..43fc3d8c5373ba15cf7dd33278cfd41221bf9504 100644 (file)
@@ -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]