summaryrefslogtreecommitdiffstats
path: root/bitbake/lib/bb/fetch2/bzr.py
diff options
context:
space:
mode:
authorMariano Lopez <mariano.lopez@linux.intel.com>2016-08-05 13:54:44 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2016-08-10 10:46:34 +0100
commita6630c231033cdc4ad783404d7969937ed7a9bd1 (patch)
tree3e720c85a0007fcaa10e3deeee92c1e34f8241a2 /bitbake/lib/bb/fetch2/bzr.py
parent87cb470304dce720a1723f81b327dc06332fd147 (diff)
downloadpoky-a6630c231033cdc4ad783404d7969937ed7a9bd1.tar.gz
bitbake: fetch: Fix use of tar's --exclude option for tar >= 1.29
Starting from tar 1.29 the --exclude option won't work anymore if is not used before the path. There are some fetch modules that copy the ptest using tar and --exclude option. This fixes these for bitbake. [YOCTO #9763] (Bitbake rev: cc71d5d9da71ea5f21d02f3b2fbf119bd2d794f0) Signed-off-by: Mariano Lopez <mariano.lopez@linux.intel.com> Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake/lib/bb/fetch2/bzr.py')
-rw-r--r--bitbake/lib/bb/fetch2/bzr.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/bitbake/lib/bb/fetch2/bzr.py b/bitbake/lib/bb/fetch2/bzr.py
index 03e9ac461b..ce11ee7c20 100644
--- a/bitbake/lib/bb/fetch2/bzr.py
+++ b/bitbake/lib/bb/fetch2/bzr.py
@@ -106,7 +106,7 @@ class Bzr(FetchMethod):
106 if scmdata == "keep": 106 if scmdata == "keep":
107 tar_flags = "" 107 tar_flags = ""
108 else: 108 else:
109 tar_flags = "--exclude '.bzr' --exclude '.bzrtags'" 109 tar_flags = "--exclude='.bzr' --exclude='.bzrtags'"
110 110
111 # tar them up to a defined filename 111 # tar them up to a defined filename
112 runfetchcmd("tar %s -czf %s %s" % (tar_flags, ud.localpath, os.path.basename(ud.pkgdir)), d, cleanup = [ud.localpath]) 112 runfetchcmd("tar %s -czf %s %s" % (tar_flags, ud.localpath, os.path.basename(ud.pkgdir)), d, cleanup = [ud.localpath])