From 07b85d35d2fcc378b0acff814c051fca7b78cb66 Mon Sep 17 00:00:00 2001 From: Peter Mikus Date: Fri, 12 May 2017 09:47:07 +0200 Subject: [PATCH] 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 --- resources/libraries/python/SetupFramework.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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() -- 2.16.6