diff options
author | Charlie Johnston <charlie.johnston@loftorbital.com> | 2023-11-27 06:11:47 -0700 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2023-12-02 18:04:23 +0000 |
commit | 1f8a639a67a192fa06cef15018a5cd5f7f94a602 (patch) | |
tree | 2cff0441ec242f660285ca5d00c7cd3478ef7b27 /scripts/lib/scriptpath.py | |
parent | 64725a9c324d709e633ad31a79266a62a6d10f34 (diff) | |
download | poky-1f8a639a67a192fa06cef15018a5cd5f7f94a602.tar.gz |
bitbake: fetch2: Ensure GCP fetcher checks if file exists before download.
The GCP fetcher was calling bb.fetch2.check_network_access with
"gsutil stat" as the command, but then never actually ran that
command to check if the file exists. In cases where the file did
not exist in a gs:// premirror, this would lead to an unhandled
exception from do_fetch when the GCP python API tried to perform
the download.
This change resolves that issue by adding a runfetchcmd to call
gsutil.
(Bitbake rev: 1ab1d36c0af6fc58a974106b61ff4d37da6cb229)
Signed-off-by: Charlie Johnston <charlie.johnston@loftorbital.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'scripts/lib/scriptpath.py')
0 files changed, 0 insertions, 0 deletions