aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRagesh Nair <ragesh.nair@duagon.com>2023-10-21 03:10:49 +0200
committerRichard Purdie <richard.purdie@linuxfoundation.org>2023-10-23 11:39:38 +0100
commite411dc07d032be6811d0393c50a06fc28e669b24 (patch)
tree246d30695f50d4f2daf89079b27a90e3fb254be3
parent302969885d37a76edec3aa79181e98f8d7e28021 (diff)
downloadbitbake-contrib-e411dc07d032be6811d0393c50a06fc28e669b24.tar.gz
fetch2/git: fix lfs fetch with destsuffix param
Pre-fetching of LFS blobs now also works if a destsuffix parameter is supplied. This also fixes issues with Yocto Kirkstone (and newer) builds, where fetching the LFS blobs is retried unsuccessfully during do_unpack, as network access is blocked for any task other than do_fetch. Signed-off-by: Ragesh Nair <ragesh.nair@duagon.com> Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r--lib/bb/fetch2/git.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/bb/fetch2/git.py b/lib/bb/fetch2/git.py
index c7ed1f036..27a0d0514 100644
--- a/lib/bb/fetch2/git.py
+++ b/lib/bb/fetch2/git.py
@@ -462,8 +462,8 @@ class Git(FetchMethod):
# Only do this if the unpack resulted in a .git/lfs directory being
# created; this only happens if at least one blob needed to be
# downloaded.
- if os.path.exists(os.path.join(tmpdir, "git", ".git", "lfs")):
- runfetchcmd("tar -cf - lfs | tar -xf - -C %s" % ud.clonedir, d, workdir="%s/git/.git" % tmpdir)
+ if os.path.exists(os.path.join(ud.destdir, ".git", "lfs")):
+ runfetchcmd("tar -cf - lfs | tar -xf - -C %s" % ud.clonedir, d, workdir="%s/.git" % ud.destdir)
def build_mirror_data(self, ud, d):