Fix use of tar's --exclude option for tar >= 1.29
PATCH 1/1 Fix use of tar's --exclude option for tar >= 1.29
In reply to a message not in the archiveFrom: Mariano Lopez <[email protected]>
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]
Signed-off-by Mariano Lopez <[email protected]>
--- bitbake/lib/bb/fetch2/bzr.py | 2 +- bitbake/lib/bb/fetch2/cvs.py | 2 +- bitbake/lib/bb/fetch2/repo.py | 2 +- bitbake/lib/bb/fetch2/svn.py | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-)
bitbake/lib/bb/fetch2/bzr.py +1 -1
@@ -106,7 +106,7 @@ class Bzr(FetchMethod): if scmdata == "keep": tar_flags = "" else: - tar_flags = "--exclude '.bzr' --exclude '.bzrtags'" + tar_flags = "--exclude='.bzr' --exclude='.bzrtags'" # tar them up to a defined filename runfetchcmd("tar %s -czf %s %s" % (tar_flags, ud.localpath, os.path.basename(ud.pkgdir)), d, cleanup = [ud.localpath])
bitbake/lib/bb/fetch2/cvs.py +1 -1
@@ -147,7 +147,7 @@ class Cvs(FetchMethod): if scmdata == "keep": tar_flags = "" else: - tar_flags = "--exclude 'CVS'" + tar_flags = "--exclude='CVS'" # tar them up to a defined filename if 'fullpath' in ud.parm:
bitbake/lib/bb/fetch2/repo.py +1 -1
@@ -83,7 +83,7 @@ class Repo(FetchMethod): if scmdata == "keep": tar_flags = "" else: - tar_flags = "--exclude '.repo' --exclude '.git'" + tar_flags = "--exclude='.repo' --exclude='.git'" # Create a cache runfetchcmd("tar %s -czf %s %s" % (tar_flags, ud.localpath, os.path.join(".", "*") ), d)
bitbake/lib/bb/fetch2/svn.py +1 -1
@@ -150,7 +150,7 @@ class Svn(FetchMethod): if scmdata == "keep": tar_flags = "" else: - tar_flags = "--exclude '.svn'" + tar_flags = "--exclude='.svn'" os.chdir(ud.pkgdir) # tar them up to a defined filename
Signature · 1 line
2.6.6