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/81fsdg20230625
commit
051f928fd2
|
@ -39,7 +39,7 @@
|
||||||
/version
|
/version
|
||||||
/versiondate
|
/versiondate
|
||||||
/blobs/app/
|
/blobs/app/
|
||||||
/blobs/vendorupdate
|
/blobs/cache/
|
||||||
*me.bin
|
*me.bin
|
||||||
/mrc/
|
/mrc/
|
||||||
/util/nvmutil/nvm
|
/util/nvmutil/nvm
|
||||||
|
|
|
@ -11,6 +11,7 @@ ec_hash=""
|
||||||
dl_hash=""
|
dl_hash=""
|
||||||
dl_url=""
|
dl_url=""
|
||||||
dl_url_bkup=""
|
dl_url_bkup=""
|
||||||
|
dl_path=""
|
||||||
e6400_vga_dl_hash=""
|
e6400_vga_dl_hash=""
|
||||||
e6400_vga_dl_url=""
|
e6400_vga_dl_url=""
|
||||||
e6400_vga_dl_url_bkup=""
|
e6400_vga_dl_url_bkup=""
|
||||||
|
@ -21,7 +22,6 @@ cbdir="coreboot/default"
|
||||||
cbcfgsdir="resources/coreboot"
|
cbcfgsdir="resources/coreboot"
|
||||||
boarddir=""
|
boarddir=""
|
||||||
blobdir="blobs"
|
blobdir="blobs"
|
||||||
dl_path="${blobdir}/vendorupdate"
|
|
||||||
appdir="${blobdir}/app"
|
appdir="${blobdir}/app"
|
||||||
_7ztest="a"
|
_7ztest="a"
|
||||||
mecleaner="$(pwd)/me_cleaner/me_cleaner.py"
|
mecleaner="$(pwd)/me_cleaner/me_cleaner.py"
|
||||||
|
@ -431,6 +431,9 @@ fetch_update()
|
||||||
return 1
|
return 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
dl_path=${blobdir}/cache/${dlsum}
|
||||||
|
mkdir -p ${blobdir}/cache
|
||||||
|
|
||||||
vendor_checksum ${dlsum} || \
|
vendor_checksum ${dlsum} || \
|
||||||
wget ${dl} -O ${dl_path} || wget ${dl_bkup} -O ${dl_path}
|
wget ${dl} -O ${dl_path} || wget ${dl_bkup} -O ${dl_path}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue