about summary refs log tree commit diff
diff options
context:
space:
mode:
authorBrian Anderson <banderson@mozilla.com>2014-01-03 11:41:15 -0800
committerBrian Anderson <banderson@mozilla.com>2014-01-03 11:41:23 -0800
commitf86d07998a2a80fcf9e69cca9d89c2ca4d982e02 (patch)
tree3a0d9b6fc3ae7e8fc81ca5422376bca1e664ec89
parent11ce6b709ace233e473eddb26e3e23c2c4c16cdd (diff)
downloadrust-f86d07998a2a80fcf9e69cca9d89c2ca4d982e02.tar.gz
rust-f86d07998a2a80fcf9e69cca9d89c2ca4d982e02.zip
Fix windows dist script
In copying the license for the third-party bins it is attempting
to delete a directory that doesn't exist.
-rw-r--r--src/etc/copy-runtime-deps.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/etc/copy-runtime-deps.py b/src/etc/copy-runtime-deps.py
index 16155a99b69..4f4949e3c88 100644
--- a/src/etc/copy-runtime-deps.py
+++ b/src/etc/copy-runtime-deps.py
@@ -10,7 +10,8 @@ def copy_runtime_deps(dest_dir):
         shutil.copy(path, dest_dir)
 
     lic_dest = os.path.join(dest_dir, "third-party")
-    shutil.rmtree(lic_dest) # copytree() won't overwrite existing files
+    if os.path.exists(lic_dest):
+        shutil.rmtree(lic_dest) # copytree() won't overwrite existing files
     shutil.copytree(os.path.join(os.path.dirname(__file__), "third-party"), lic_dest)
 
 copy_runtime_deps(sys.argv[1])