Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mumble-voip/mumble.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/macx
diff options
context:
space:
mode:
authorMikkel Krautz <mikkel@krautz.dk>2012-09-16 23:38:23 +0400
committerMikkel Krautz <mikkel@krautz.dk>2012-09-16 23:38:23 +0400
commit98cacbc28fa98e36eb6eba60b3cf40c36d76a05c (patch)
tree992f39af1825638964921efa856eef13f94abea2 /macx
parentb86c3b7743c5c0bc6ac254de1a54689872d8c699 (diff)
osxdist.py: only rmtree if path exists.
Diffstat (limited to 'macx')
-rwxr-xr-xmacx/scripts/osxdist.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/macx/scripts/osxdist.py b/macx/scripts/osxdist.py
index 545f17668..4076b2d09 100755
--- a/macx/scripts/osxdist.py
+++ b/macx/scripts/osxdist.py
@@ -329,7 +329,8 @@ def package_server():
os.system('cd scripts && sh mkini.sh')
destdir = os.path.join('release', name)
- shutil.rmtree(destdir)
+ if os.path.exists(destdir):
+ shutil.rmtree(destdir)
os.mkdir(destdir)
shutil.copy('installer/gpl.txt', os.path.join(destdir, 'LICENSE'))