From 6491ed9e2ee6562a9ffc548fdd9ee6e13ba96657 Mon Sep 17 00:00:00 2001 From: Khem Raj Date: Fri, 24 Sep 2010 15:46:59 -0700 Subject: fetchers: Use tar --exclude pattern to remove SCM files This option will exclude the SCM metadata from tar files. Tested with gcc where svn tar which used to be 156M for gcc 4.5 is now 77M (Bitbake rev: f264cb6d43472525ad787b0887764ea696ec52ba) Signed-off-by: Khem Raj Signed-off-by: Richard Purdie --- bitbake/lib/bb/fetch/bzr.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'bitbake/lib/bb/fetch/bzr.py') diff --git a/bitbake/lib/bb/fetch/bzr.py b/bitbake/lib/bb/fetch/bzr.py index 8b0bd9ff3..3ca125f37 100644 --- a/bitbake/lib/bb/fetch/bzr.py +++ b/bitbake/lib/bb/fetch/bzr.py @@ -107,7 +107,7 @@ class Bzr(Fetch): os.chdir(ud.pkgdir) # tar them up to a defined filename try: - runfetchcmd("tar -czf %s %s" % (ud.localpath, os.path.basename(ud.pkgdir)), d) + runfetchcmd("tar --exclude '.bzr' --exclude '.bzrtags' -czf %s %s" % (ud.localpath, os.path.basename(ud.pkgdir)), d) except: t, v, tb = sys.exc_info() try: -- cgit v1.2.3