diff options
author | Richard Purdie <richard.purdie@linuxfoundation.org> | 2012-03-23 14:52:23 +0000 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2012-03-23 14:54:16 +0000 |
commit | 3d69d9462d550ce4e00e14768cc616bc9ad7e8a5 (patch) | |
tree | f875ea478604e4bda122330ca3372b2923599ccd /bitbake/lib/bb/fetch2/git.py | |
parent | 67c83a8c0838c28cfbbb792daa83aa1f3c331302 (diff) | |
download | poky-3d69d9462d550ce4e00e14768cc616bc9ad7e8a5.tar.gz |
bitbake/fetch2: Ensure mirror tarballs have .done stamps so we don't redownload and corrupt them
[YOCTO #2154]
(Bitbake rev: 521d6b14151d3bf934b9597557f7ae46e50a3d7a)
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake/lib/bb/fetch2/git.py')
-rw-r--r-- | bitbake/lib/bb/fetch2/git.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/bitbake/lib/bb/fetch2/git.py b/bitbake/lib/bb/fetch2/git.py index 4e46ec8f30..61fdc4b05e 100644 --- a/bitbake/lib/bb/fetch2/git.py +++ b/bitbake/lib/bb/fetch2/git.py | |||
@@ -214,6 +214,7 @@ class Git(FetchMethod): | |||
214 | os.chdir(ud.clonedir) | 214 | os.chdir(ud.clonedir) |
215 | logger.info("Creating tarball of git repository") | 215 | logger.info("Creating tarball of git repository") |
216 | runfetchcmd("tar -czf %s %s" % (ud.fullmirror, os.path.join(".") ), d) | 216 | runfetchcmd("tar -czf %s %s" % (ud.fullmirror, os.path.join(".") ), d) |
217 | runfetchcmd("touch %s.done" % (ud.fullmirror), d) | ||
217 | 218 | ||
218 | def unpack(self, ud, destdir, d): | 219 | def unpack(self, ud, destdir, d): |
219 | """ unpack the downloaded src to destdir""" | 220 | """ unpack the downloaded src to destdir""" |