diff options
Diffstat (limited to 'bitbake/lib/bb/fetch/cvs.py')
-rw-r--r-- | bitbake/lib/bb/fetch/cvs.py | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/bitbake/lib/bb/fetch/cvs.py b/bitbake/lib/bb/fetch/cvs.py index bd919e234e..0edb794b04 100644 --- a/bitbake/lib/bb/fetch/cvs.py +++ b/bitbake/lib/bb/fetch/cvs.py | |||
@@ -149,14 +149,20 @@ class Cvs(Fetch): | |||
149 | pass | 149 | pass |
150 | raise FetchError(ud.module) | 150 | raise FetchError(ud.module) |
151 | 151 | ||
152 | scmdata = ud.parm.get("scmdata", "") | ||
153 | if scmdata == "keep": | ||
154 | tar_flags = "" | ||
155 | else: | ||
156 | tar_flags = "--exclude 'CVS'" | ||
157 | |||
152 | # tar them up to a defined filename | 158 | # tar them up to a defined filename |
153 | if 'fullpath' in ud.parm: | 159 | if 'fullpath' in ud.parm: |
154 | os.chdir(pkgdir) | 160 | os.chdir(pkgdir) |
155 | myret = os.system("tar --exclude 'CVS' -czf %s %s" % (ud.localpath, localdir)) | 161 | myret = os.system("tar %s -czf %s %s" % (tar_flags, ud.localpath, localdir)) |
156 | else: | 162 | else: |
157 | os.chdir(moddir) | 163 | os.chdir(moddir) |
158 | os.chdir('..') | 164 | os.chdir('..') |
159 | myret = os.system("tar -czf %s %s" % (ud.localpath, os.path.basename(moddir))) | 165 | myret = os.system("tar %s -czf %s %s" % (tar_flags, ud.localpath, os.path.basename(moddir))) |
160 | 166 | ||
161 | if myret != 0: | 167 | if myret != 0: |
162 | try: | 168 | try: |