diff options
author | Ragesh Nair <ragesh.nair@duagon.com> | 2023-10-21 03:10:49 +0200 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2023-10-23 11:46:36 +0100 |
commit | eadd4605daf2c4e164a142516324365bd9d3ccf0 (patch) | |
tree | ceae7d81dc0b4ccfc4e5c77036e2ea833afd299c /bitbake/lib/bb/fetch2/git.py | |
parent | c4205d2455c4089d42de3750c9d495bb20051abb (diff) | |
download | poky-eadd4605daf2c4e164a142516324365bd9d3ccf0.tar.gz |
bitbake: 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.
(Bitbake rev: e411dc07d032be6811d0393c50a06fc28e669b24)
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>
Diffstat (limited to 'bitbake/lib/bb/fetch2/git.py')
-rw-r--r-- | bitbake/lib/bb/fetch2/git.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/bitbake/lib/bb/fetch2/git.py b/bitbake/lib/bb/fetch2/git.py index c7ed1f0368..27a0d05144 100644 --- a/bitbake/lib/bb/fetch2/git.py +++ b/bitbake/lib/bb/fetch2/git.py | |||
@@ -462,8 +462,8 @@ class Git(FetchMethod): | |||
462 | # Only do this if the unpack resulted in a .git/lfs directory being | 462 | # Only do this if the unpack resulted in a .git/lfs directory being |
463 | # created; this only happens if at least one blob needed to be | 463 | # created; this only happens if at least one blob needed to be |
464 | # downloaded. | 464 | # downloaded. |
465 | if os.path.exists(os.path.join(tmpdir, "git", ".git", "lfs")): | 465 | if os.path.exists(os.path.join(ud.destdir, ".git", "lfs")): |
466 | runfetchcmd("tar -cf - lfs | tar -xf - -C %s" % ud.clonedir, d, workdir="%s/git/.git" % tmpdir) | 466 | runfetchcmd("tar -cf - lfs | tar -xf - -C %s" % ud.clonedir, d, workdir="%s/.git" % ud.destdir) |
467 | 467 | ||
468 | def build_mirror_data(self, ud, d): | 468 | def build_mirror_data(self, ud, d): |
469 | 469 | ||