aboutsummaryrefslogtreecommitdiffstats
path: root/resources
diff options
context:
space:
mode:
authorPeter Mikus <pmikus@cisco.com>2017-05-12 09:47:07 +0200
committerPeter Mikus <pmikus@cisco.com>2017-05-12 09:47:07 +0200
commit07b85d35d2fcc378b0acff814c051fca7b78cb66 (patch)
tree375e44eb423418a1efae6ae02343be3ea87e1dd1 /resources
parent48eb2c5381fe357980a64803cb660d32bf23626a (diff)
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 <pmikus@cisco.com>
Diffstat (limited to 'resources')
-rw-r--r--resources/libraries/python/SetupFramework.py3
1 files changed, 2 insertions, 1 deletions
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()