summaryrefslogtreecommitdiff
path: root/resources/scripts
diff options
context:
space:
mode:
authorLeah Rowe <leah@libreboot.org>2023-07-29 08:21:09 +0100
committerLeah Rowe <leah@libreboot.org>2023-07-29 08:21:09 +0100
commitcca93ca3f366af09b92c163e11cdfd3240c11adb (patch)
treedb0fea98647f87709dae88c473cabcb70de36bbc /resources/scripts
parent3aeefaa75d026a6d4978ab83db24becca859510c (diff)
blobs/download: don't download backup on main
The script was actually downloading the backup, at all times, for each given URL. The way we handle this is quite buggy. This patch is a workaround, a dirty hack in fact, but it will do for now, because our backup URLs are always wayback links where the original URL (matching the correct main URL in the sources file) is always present, in the URL. Signed-off-by: Leah Rowe <leah@libreboot.org>
Diffstat (limited to 'resources/scripts')
-rwxr-xr-xresources/scripts/update/blobs/download6
1 files changed, 3 insertions, 3 deletions
diff --git a/resources/scripts/update/blobs/download b/resources/scripts/update/blobs/download
index af4e7e7a..6067b48f 100755
--- a/resources/scripts/update/blobs/download
+++ b/resources/scripts/update/blobs/download
@@ -110,7 +110,7 @@ scan_sources_config()
case ${line} in
EC_url*)
set ${line}
- ec_url=${2}
+ ec_url=http${2##*http}
;;
EC_url_bkup*)
set ${line}
@@ -126,7 +126,7 @@ scan_sources_config()
;;
DL_url*)
set ${line}
- dl_url=${2}
+ dl_url=http${2##*http}
;;
DL_url_bkup*)
set ${line}
@@ -138,7 +138,7 @@ scan_sources_config()
;;
E6400_VGA_DL_url*)
set ${line}
- e6400_vga_dl_url=${2}
+ e6400_vga_dl_url=http${2##*http}
;;
E6400_VGA_DL_url_bkup*)
set ${line}