Fix bug #2298, make Move factory work across filesystems.
authorgaryo <garyo@fdb21ef1-2011-0410-befe-b5e4ea1792b1>
Thu, 7 May 2009 01:43:10 +0000 (01:43 +0000)
committergaryo <garyo@fdb21ef1-2011-0410-befe-b5e4ea1792b1>
Thu, 7 May 2009 01:43:10 +0000 (01:43 +0000)
git-svn-id: http://scons.tigris.org/svn/scons/trunk@4174 fdb21ef1-2011-0410-befe-b5e4ea1792b1

src/engine/SCons/Defaults.py

index a3acc52d80f52b6e3cd23cb50273472382d37f5b..e4d6da305bfbeb271a5e3249adf2a6cdd6f12944 100644 (file)
@@ -237,7 +237,7 @@ Mkdir = ActionFactory(mkdir_func,
 def move_func(dest, src):
     SCons.Node.FS.invalidate_node_memos(dest)
     SCons.Node.FS.invalidate_node_memos(src)
-    os.rename(src, dest)
+    shutil.move(src, dest)
 
 Move = ActionFactory(move_func,
                      lambda dest, src: 'Move("%s", "%s")' % (dest, src),