added 'koch testinstall' command; more installer related bugfixes

This commit is contained in:
Andreas Rumpf 2016-06-09 17:34:51 +02:00
commit 76c8d6164b
7 changed files with 78 additions and 17 deletions

View file

@ -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)