From fee87f435323d6e65e4f6ac7bafdebf26816bae0 Mon Sep 17 00:00:00 2001 From: Paul Eggleton Date: Fri, 3 Jun 2016 23:31:59 +1200 Subject: [PATCH] bulkchange: drop temp paths in multi-patch tarball 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 --- 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: