For more simplicity, use os.rename instead of spawning MOVE_BINARY (see bug #136404).
authorZac Medico <zmedico@gentoo.org>
Mon, 12 Jun 2006 19:06:02 +0000 (19:06 -0000)
committerZac Medico <zmedico@gentoo.org>
Mon, 12 Jun 2006 19:06:02 +0000 (19:06 -0000)
svn path=/main/trunk/; revision=3500

pym/portage.py

index dafcb4bcac79c0f723d847e57cd4a4b72a950bf9..26cce56ccc04b1358dff8037a82c4fae26db8014 100644 (file)
@@ -4529,7 +4529,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]