aboutsummaryrefslogtreecommitdiffstats
path: root/lib/bb/fetch/svn.py
diff options
context:
space:
mode:
authorKhem Raj <raj.khem@gmail.com>2010-09-24 15:46:59 -0700
committerChris Larson <chris_larson@mentor.com>2010-09-28 08:52:39 -0700
commitf264cb6d43472525ad787b0887764ea696ec52ba (patch)
treed9ef0d97c3d2f0aea932257d75f5f7b2d0dc752a /lib/bb/fetch/svn.py
parentbed8e09971dc577f5443ad3d89aa14634c54eb16 (diff)
downloadbitbake-f264cb6d43472525ad787b0887764ea696ec52ba.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 Signed-off-by: Khem Raj <raj.khem@gmail.com>
Diffstat (limited to 'lib/bb/fetch/svn.py')
-rw-r--r--lib/bb/fetch/svn.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/bb/fetch/svn.py b/lib/bb/fetch/svn.py
index 34f813225..c236e413f 100644
--- a/lib/bb/fetch/svn.py
+++ b/lib/bb/fetch/svn.py
@@ -159,7 +159,7 @@ class Svn(Fetch):
os.chdir(ud.pkgdir)
# tar them up to a defined filename
try:
- runfetchcmd("tar -czf %s %s" % (ud.localpath, ud.module), d)
+ runfetchcmd("tar --exclude '.svn' -czf %s %s" % (ud.localpath, ud.module), d)
except:
t, v, tb = sys.exc_info()
try: