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>
This commit is contained in:
Richard Purdie
2012-03-23 14:52:23 +00:00
parent 67c83a8c08
commit 3d69d9462d
2 changed files with 2 additions and 0 deletions

View File

@@ -214,6 +214,7 @@ class Git(FetchMethod):
os.chdir(ud.clonedir)
logger.info("Creating tarball of git repository")
runfetchcmd("tar -czf %s %s" % (ud.fullmirror, os.path.join(".") ), d)
runfetchcmd("touch %s.done" % (ud.fullmirror), d)
def unpack(self, ud, destdir, d):
""" unpack the downloaded src to destdir"""