summaryrefslogtreecommitdiffstats
path: root/bitbake/lib/bb/fetch/cvs.py
diff options
context:
space:
mode:
authorKhem Raj <raj.khem@gmail.com>2010-09-24 15:46:59 -0700
committerRichard Purdie <rpurdie@linux.intel.com>2011-01-04 14:46:37 +0000
commit6491ed9e2ee6562a9ffc548fdd9ee6e13ba96657 (patch)
tree866b11c4cba450d613f9a38b26122b5f486be101 /bitbake/lib/bb/fetch/cvs.py
parentc81cd1be64a6d8c725fc7323d040ed2fad41c826 (diff)
downloadpoky-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/cvs.py')
-rw-r--r--bitbake/lib/bb/fetch/cvs.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/bitbake/lib/bb/fetch/cvs.py b/bitbake/lib/bb/fetch/cvs.py
index 1064b09e11..42d71ba9fe 100644
--- a/bitbake/lib/bb/fetch/cvs.py
+++ b/bitbake/lib/bb/fetch/cvs.py
@@ -162,7 +162,7 @@ class Cvs(Fetch):
162 # tar them up to a defined filename 162 # tar them up to a defined filename
163 if 'fullpath' in ud.parm: 163 if 'fullpath' in ud.parm:
164 os.chdir(pkgdir) 164 os.chdir(pkgdir)
165 myret = os.system("tar -czf %s %s" % (ud.localpath, localdir)) 165 myret = os.system("tar --exclude 'CVS' -czf %s %s" % (ud.localpath, localdir))
166 else: 166 else:
167 os.chdir(moddir) 167 os.chdir(moddir)
168 os.chdir('..') 168 os.chdir('..')