mirror of
https://gitee.com/spark-store-project/spark-store
synced 2025-05-16 22:29:49 +08:00
update tool/apt-fast/ss-apt-fast.
Signed-off-by: shenmo <jifengshenmo@outlook.com>
This commit is contained in:
parent
668e5dc28d
commit
564966daef
@ -450,7 +450,8 @@ get_uris(){
|
||||
|
||||
IFS=' ' read -r uri filename filesize checksum_string _ <<<"$pkg_uri_info"
|
||||
[ -z "$uri" ] && continue
|
||||
uri="$(get_auth "${uri//"'"/}")"
|
||||
uri="${uri//"'"/}"
|
||||
[ "$APT_FAST_APT_AUTH" -ne 0 ] && uri="$(get_auth "$uri")"
|
||||
IFS=':' read -r hash_algo checksum _ <<<"$checksum_string"
|
||||
|
||||
if [[ "$filename" == *%* ]]; then
|
||||
@ -466,8 +467,7 @@ get_uris(){
|
||||
|
||||
|
||||
|
||||
display_line="${display_line}$pkg_name_decoded $pkg_version_decoded"
|
||||
display_line="${display_line} $(echo "$filesize" | numfmt --to=iec-i --suffix=B)\n"
|
||||
display_line+="$pkg_name_decoded $pkg_version_decoded $filesize\n"
|
||||
|
||||
## whole uri comes encoded (urlencoded). Filename must NOT be decoded because
|
||||
# plain aptitude do not decode it when download and install it. Therefore, we
|
||||
|
Loading…
x
Reference in New Issue
Block a user