[yocto] [layerindex-web][PATCH v2 06/15] bulkchange: drop temp paths in multi-patch tarball

Paul Eggleton paul.eggleton at linux.intel.com
Wed Jun 8 06:19:59 PDT 2016


We were getting temporary paths appearing in the tarball that gets
created to allow you to download the patches for a bulk change operation
that crosses multiple layers - we don't need those.

Signed-off-by: Paul Eggleton <paul.eggleton at linux.intel.com>
---
 layerindex/bulkchange.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/layerindex/bulkchange.py b/layerindex/bulkchange.py
index c569b61..08d6d78 100644
--- a/layerindex/bulkchange.py
+++ b/layerindex/bulkchange.py
@@ -70,7 +70,7 @@ def generate_patches(tinfoil, fetchdir, changeset, outputdir):
         tar = tarfile.open(None, "w:gz", tmptarfile)
         for patch in patches:
             patchfn = os.path.join(tmpoutdir, patch)
-            tar.add(patchfn)
+            tar.add(patchfn, arcname=patch)
         tar.close()
         ret = tmptarname
     elif len(patches) == 1:
-- 
2.5.5




More information about the yocto mailing list