Fix: SetupFramework sparse file handling 57/6657/1
authorPeter Mikus <pmikus@cisco.com>
Fri, 12 May 2017 07:47:07 +0000 (09:47 +0200)
committerPeter Mikus <pmikus@cisco.com>
Fri, 12 May 2017 07:47:07 +0000 (09:47 +0200)
- 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>
resources/libraries/python/SetupFramework.py

index 82c4ae2..a528f68 100644 (file)
@@ -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()
 

©2016 FD.io a Linux Foundation Collaborative Project. All Rights Reserved.
Linux Foundation is a registered trademark of The Linux Foundation. Linux is a registered trademark of Linus Torvalds.
Please see our privacy policy and terms of use.