From: Peter Mikus Date: Fri, 12 May 2017 07:47:07 +0000 (+0200) Subject: Fix: SetupFramework sparse file handling X-Git-Url: https://gerrit.fd.io/r/gitweb?a=commitdiff_plain;h=refs%2Fchanges%2F57%2F6657%2F1;p=csit.git Fix: SetupFramework sparse file handling - Fix the issue during packing of the framework when source directory contains sparse files. By default tar is throwing warning resulting in return code other then 0. Change-Id: I39a9c1956685158e2e0fd9ef9545f90e3ef2a89f Signed-off-by: Peter Mikus --- diff --git a/resources/libraries/python/SetupFramework.py b/resources/libraries/python/SetupFramework.py index 82c4ae2a65..a528f6867c 100644 --- a/resources/libraries/python/SetupFramework.py +++ b/resources/libraries/python/SetupFramework.py @@ -50,7 +50,8 @@ def pack_framework_dir(): tmpfile.close() proc = Popen( - split("tar --exclude-vcs --exclude=./tmp --exclude=*.deb -zcf {0} .". + split("tar --sparse --exclude-vcs " + "--exclude=./tmp --exclude=*.deb -zcf {0} .". format(file_name)), stdout=PIPE, stderr=PIPE) (stdout, stderr) = proc.communicate()