cf6441d58712 — Leonard Ritter a month ago
* fixed broken tar command
1 files changed, 7 insertions(+), 3 deletions(-)

M externals/build_common.py
M externals/build_common.py +7 -3
@@ 280,7 280,7 @@ def unpack_contents(arcfilepath, targetd
 def pack_archive(archivepath, base_dir, dirname):
     print("{} <= {}{}{}".format(archivepath, base_dir, os.sep, dirname))
     if archivepath.endswith('.tar.gz'):
-        shell('tar --force-local -C {} -zcf {} {}'.format(
+        shell('tar -C {} -zcf {} {}'.format(
             base_dir, archivepath,
             dirname))
     elif archivepath.endswith('.zip'):

          
@@ 608,8 608,12 @@ class BuilderBase(object):
             elif self.SVN_URL or self.URL:
                 self.download_sources(targetdir)
                 os.chdir(basepath)
-                self.shell('tar --force-local -zcvf {} {}'.format(
-                    archive, self.NAME))
+                if self.IS_WIN32:
+                    self.shell('tar -zcvf {} {}'.format(
+                        archive, self.NAME))
+                else:
+                    self.shell('tar --force-local -zcvf {} {}'.format(
+                        archive, self.NAME))
                 self.rmtree(targetdir)
         os.chdir(cwd)