Fix unpacking the .zip packages even if there are no source changes.
authorstevenknight <stevenknight@fdb21ef1-2011-0410-befe-b5e4ea1792b1>
Sat, 30 Aug 2003 16:08:56 +0000 (16:08 +0000)
committerstevenknight <stevenknight@fdb21ef1-2011-0410-befe-b5e4ea1792b1>
Sat, 30 Aug 2003 16:08:56 +0000 (16:08 +0000)
git-svn-id: http://scons.tigris.org/svn/scons/trunk@785 fdb21ef1-2011-0410-befe-b5e4ea1792b1

SConstruct

index 9979695dcc7b5945a5d29befb732a4e30576148e..e1cb34158570e054aab8904350a5acf2d3436add 100644 (file)
@@ -642,7 +642,10 @@ for p in [ scons ]:
                                       os.path.join(u, pv, x),
                                src_files)
 
-        env.Command(unpack_zip_files, zip, unzipit)
+        env.Command(unpack_zip_files, zip, [
+            "rm -rf %s" % os.path.join(unpack_zip_dir, pkg_version),
+            unzipit
+        ])
 
         #
         # Run setup.py in the unpacked subdirectory to "install" everything
@@ -1013,7 +1016,10 @@ if change:
                                              os.path.join(u, psv, x),
                                       sfiles)
 
-            env.Command(unpack_zip_files, src_zip, unzipit)
+            env.Command(unpack_zip_files, src_zip, [
+                "rm -rf %s" % os.path.join(unpack_zip_dir, psv),
+                unzipit
+            ])
 
             #
             # Run setup.py in the unpacked subdirectory to "install" everything