diff options
author | Khem Raj <raj.khem@gmail.com> | 2010-09-24 15:46:59 -0700 |
---|---|---|
committer | Richard Purdie <rpurdie@linux.intel.com> | 2011-01-04 14:46:37 +0000 |
commit | 6491ed9e2ee6562a9ffc548fdd9ee6e13ba96657 (patch) | |
tree | 866b11c4cba450d613f9a38b26122b5f486be101 /bitbake/lib/bb/fetch/bzr.py | |
parent | c81cd1be64a6d8c725fc7323d040ed2fad41c826 (diff) | |
download | poky-6491ed9e2ee6562a9ffc548fdd9ee6e13ba96657.tar.gz |
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 <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
Diffstat (limited to 'bitbake/lib/bb/fetch/bzr.py')
-rw-r--r-- | bitbake/lib/bb/fetch/bzr.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bitbake/lib/bb/fetch/bzr.py b/bitbake/lib/bb/fetch/bzr.py index 8b0bd9ff3a..3ca125f370 100644 --- a/bitbake/lib/bb/fetch/bzr.py +++ b/bitbake/lib/bb/fetch/bzr.py | |||
@@ -107,7 +107,7 @@ class Bzr(Fetch): | |||
107 | os.chdir(ud.pkgdir) | 107 | os.chdir(ud.pkgdir) |
108 | # tar them up to a defined filename | 108 | # tar them up to a defined filename |
109 | try: | 109 | try: |
110 | runfetchcmd("tar -czf %s %s" % (ud.localpath, os.path.basename(ud.pkgdir)), d) | 110 | runfetchcmd("tar --exclude '.bzr' --exclude '.bzrtags' -czf %s %s" % (ud.localpath, os.path.basename(ud.pkgdir)), d) |
111 | except: | 111 | except: |
112 | t, v, tb = sys.exc_info() | 112 | t, v, tb = sys.exc_info() |
113 | try: | 113 | try: |