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 <paul.eggleton@linux.intel.com>
This commit is contained in:
Paul Eggleton 2016-06-03 23:31:59 +12:00
parent 18d8267da3
commit 5a38b686a2

View File

@ -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: