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
|
case ${line} in
|
||||||
EC_url*)
|
EC_url*)
|
||||||
set ${line}
|
set ${line}
|
||||||
ec_url=${2}
|
ec_url=http${2##*http}
|
||||||
;;
|
;;
|
||||||
EC_url_bkup*)
|
EC_url_bkup*)
|
||||||
set ${line}
|
set ${line}
|
||||||
|
@ -126,7 +126,7 @@ scan_sources_config()
|
||||||
;;
|
;;
|
||||||
DL_url*)
|
DL_url*)
|
||||||
set ${line}
|
set ${line}
|
||||||
dl_url=${2}
|
dl_url=http${2##*http}
|
||||||
;;
|
;;
|
||||||
DL_url_bkup*)
|
DL_url_bkup*)
|
||||||
set ${line}
|
set ${line}
|
||||||
|
@ -138,7 +138,7 @@ scan_sources_config()
|
||||||
;;
|
;;
|
||||||
E6400_VGA_DL_url*)
|
E6400_VGA_DL_url*)
|
||||||
set ${line}
|
set ${line}
|
||||||
e6400_vga_dl_url=${2}
|
e6400_vga_dl_url=http${2##*http}
|
||||||
;;
|
;;
|
||||||
E6400_VGA_DL_url_bkup*)
|
E6400_VGA_DL_url_bkup*)
|
||||||
set ${line}
|
set ${line}
|
||||||
|
|
Loading…
Reference in New Issue