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/git.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/git.py')
-rw-r--r-- | bitbake/lib/bb/fetch/git.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bitbake/lib/bb/fetch/git.py b/bitbake/lib/bb/fetch/git.py index 57d758dcda..8a00a013f9 100644 --- a/bitbake/lib/bb/fetch/git.py +++ b/bitbake/lib/bb/fetch/git.py | |||
@@ -187,7 +187,7 @@ class Git(Fetch): | |||
187 | 187 | ||
188 | os.chdir(codir) | 188 | os.chdir(codir) |
189 | logger.info("Creating tarball of git checkout") | 189 | logger.info("Creating tarball of git checkout") |
190 | runfetchcmd("tar -czf %s %s" % (ud.localpath, os.path.join(".", "*") ), d) | 190 | runfetchcmd("tar --exclude '.git' -czf %s %s" % (ud.localpath, os.path.join(".", "*") ), d) |
191 | 191 | ||
192 | os.chdir(ud.clonedir) | 192 | os.chdir(ud.clonedir) |
193 | bb.utils.prunedir(codir) | 193 | bb.utils.prunedir(codir) |