summaryrefslogtreecommitdiffstats
path: root/bitbake/lib/bb/fetch2
diff options
context:
space:
mode:
Diffstat (limited to 'bitbake/lib/bb/fetch2')
-rw-r--r--bitbake/lib/bb/fetch2/git.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/bitbake/lib/bb/fetch2/git.py b/bitbake/lib/bb/fetch2/git.py
index 052802e602..6175e4c7c9 100644
--- a/bitbake/lib/bb/fetch2/git.py
+++ b/bitbake/lib/bb/fetch2/git.py
@@ -217,6 +217,10 @@ class Git(FetchMethod):
217 def build_mirror_data(self, url, ud, d): 217 def build_mirror_data(self, url, ud, d):
218 # Generate a mirror tarball if needed 218 # Generate a mirror tarball if needed
219 if ud.write_tarballs and (ud.repochanged or not os.path.exists(ud.fullmirror)): 219 if ud.write_tarballs and (ud.repochanged or not os.path.exists(ud.fullmirror)):
220 # it's possible that this symlink points to read-only filesystem with PREMIRROR
221 if os.path.islink(ud.fullmirror):
222 os.unlink(ud.fullmirror)
223
220 os.chdir(ud.clonedir) 224 os.chdir(ud.clonedir)
221 logger.info("Creating tarball of git repository") 225 logger.info("Creating tarball of git repository")
222 runfetchcmd("tar -czf %s %s" % (ud.fullmirror, os.path.join(".") ), d) 226 runfetchcmd("tar -czf %s %s" % (ud.fullmirror, os.path.join(".") ), d)