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>btrfsvols
parent
3aeefaa75d
commit
cca93ca3f3
|
@ -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}
|
||||
|
|
Loading…
Reference in New Issue