summaryrefslogtreecommitdiff
path: root/resources/scripts/update/blobs
diff options
context:
space:
mode:
authorLeah Rowe <vimuser@noreply.codeberg.org>2023-06-19 22:17:19 +0000
committerLeah Rowe <vimuser@noreply.codeberg.org>2023-06-19 22:17:19 +0000
commit051f928fd21c7081979c45c6a84553f589686c39 (patch)
tree63782d402d9dc1df23294208bc27113f48288ae8 /resources/scripts/update/blobs
parent938fc4463751b152974bcd5468374cc5563dd5cf (diff)
parent0f4f32cfc2bd89831eb9fd7623b850d88881e596 (diff)
Merge pull request 'Cache downloads based on checksum' (#81) from Riku_V/lbmk:dl_cache into master
Reviewed-on: https://codeberg.org/libreboot/lbmk/pulls/81
Diffstat (limited to 'resources/scripts/update/blobs')
-rwxr-xr-xresources/scripts/update/blobs/download5
1 files changed, 4 insertions, 1 deletions
diff --git a/resources/scripts/update/blobs/download b/resources/scripts/update/blobs/download
index 7c775ea5..eebdf0a3 100755
--- a/resources/scripts/update/blobs/download
+++ b/resources/scripts/update/blobs/download
@@ -11,6 +11,7 @@ ec_hash=""
dl_hash=""
dl_url=""
dl_url_bkup=""
+dl_path=""
e6400_vga_dl_hash=""
e6400_vga_dl_url=""
e6400_vga_dl_url_bkup=""
@@ -21,7 +22,6 @@ cbdir="coreboot/default"
cbcfgsdir="resources/coreboot"
boarddir=""
blobdir="blobs"
-dl_path="${blobdir}/vendorupdate"
appdir="${blobdir}/app"
_7ztest="a"
mecleaner="$(pwd)/me_cleaner/me_cleaner.py"
@@ -431,6 +431,9 @@ fetch_update()
return 1
fi
+ dl_path=${blobdir}/cache/${dlsum}
+ mkdir -p ${blobdir}/cache
+
vendor_checksum ${dlsum} || \
wget ${dl} -O ${dl_path} || wget ${dl_bkup} -O ${dl_path}