diff options
Diffstat (limited to 'bitbake/lib/bb/fetch/repo.py')
| -rw-r--r-- | bitbake/lib/bb/fetch/repo.py | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/bitbake/lib/bb/fetch/repo.py b/bitbake/lib/bb/fetch/repo.py index e5132a14fe..03642e7a0d 100644 --- a/bitbake/lib/bb/fetch/repo.py +++ b/bitbake/lib/bb/fetch/repo.py | |||
| @@ -79,8 +79,14 @@ class Repo(Fetch): | |||
| 79 | runfetchcmd("repo sync", d) | 79 | runfetchcmd("repo sync", d) |
| 80 | os.chdir(codir) | 80 | os.chdir(codir) |
| 81 | 81 | ||
| 82 | scmdata = ud.parm.get("scmdata", "") | ||
| 83 | if scmdata == "keep": | ||
| 84 | tar_flags = "" | ||
| 85 | else: | ||
| 86 | tar_flags = "--exclude '.repo' --exclude '.git'" | ||
| 87 | |||
| 82 | # Create a cache | 88 | # Create a cache |
| 83 | runfetchcmd("tar --exclude=.repo --exclude=.git -czf %s %s" % (ud.localpath, os.path.join(".", "*") ), d) | 89 | runfetchcmd("tar %s -czf %s %s" % (tar_flags, ud.localpath, os.path.join(".", "*") ), d) |
| 84 | 90 | ||
| 85 | def supports_srcrev(self): | 91 | def supports_srcrev(self): |
| 86 | return False | 92 | return False |
