summary refs log tree commit diff stats
path: root/tools/niminst
diff options
context:
space:
mode:
authorAndreas Rumpf <rumpf_a@web.de>2016-06-09 17:34:51 +0200
committerAndreas Rumpf <rumpf_a@web.de>2016-06-09 17:34:57 +0200
commit76c8d6164b10846f18dbd441e4d1db5d501da09d (patch)
tree61127dbd248c2bfead73ce1e57e087a48bb858e4 /tools/niminst
parent0ea65a824d61dcfeb93193f38745667880943ba3 (diff)
downloadNim-76c8d6164b10846f18dbd441e4d1db5d501da09d.tar.gz
added 'koch testinstall' command; more installer related bugfixes
Diffstat (limited to 'tools/niminst')
-rw-r--r--tools/niminst/niminst.nim6
1 files changed, 4 insertions, 2 deletions
diff --git a/tools/niminst/niminst.nim b/tools/niminst/niminst.nim
index 9f255e64b..b2983b23b 100644
--- a/tools/niminst/niminst.nim
+++ b/tools/niminst/niminst.nim
@@ -635,8 +635,10 @@ proc xzDist(c: var ConfigData) =
     let oldDir = getCurrentDir()
     setCurrentDir(tmpDir)
     try:
-      if execShellCmd("XZ_OPT=-9 tar Jcf $1.tar.xz $1" % proj) != 0:
-        echo("External program failed")
+      if execShellCmd("XZ_OPT=-9 gtar Jcf $1.tar.xz $1 --exclude=.DS_Store" % proj) != 0:
+        # try old 'tar' without --exclude feature:
+        if execShellCmd("XZ_OPT=-9 tar Jcf $1.tar.xz $1" % proj) != 0:
+          echo("External program failed")
     finally:
       setCurrentDir(oldDir)