mirror of
https://gitee.com/spark-store-project/spark-store
synced 2025-07-06 13:46:00 +08:00
修改: tool/apt-fast/ss-apt-fast
This commit is contained in:
parent
65f9c8be9b
commit
dee1850337
@ -289,6 +289,7 @@ urldecode()
|
|||||||
}
|
}
|
||||||
|
|
||||||
# Check if mirrors are available. And if so add all mirrors to download list.
|
# Check if mirrors are available. And if so add all mirrors to download list.
|
||||||
|
############ SPARK ADJUST: Now we ignore the first config for business request
|
||||||
get_mirrors(){
|
get_mirrors(){
|
||||||
# Check all mirror lists.
|
# Check all mirror lists.
|
||||||
for mirrorstr in "${MIRRORS[@]}"; do
|
for mirrorstr in "${MIRRORS[@]}"; do
|
||||||
@ -301,7 +302,7 @@ get_mirrors(){
|
|||||||
if [[ "$1" == "$mirror"* ]]; then
|
if [[ "$1" == "$mirror"* ]]; then
|
||||||
filepath=${1#${mirror}}
|
filepath=${1#${mirror}}
|
||||||
# Build list for aria download list.
|
# Build list for aria download list.
|
||||||
list="${mirrors[*]}"
|
list="${mirrors[*]:1}"
|
||||||
echo -e "${list// /${filepath}\\t}$filepath\n"
|
echo -e "${list// /${filepath}\\t}$filepath\n"
|
||||||
return 0
|
return 0
|
||||||
fi
|
fi
|
||||||
@ -310,7 +311,7 @@ get_mirrors(){
|
|||||||
# No other mirrors found.
|
# No other mirrors found.
|
||||||
echo "$1"
|
echo "$1"
|
||||||
}
|
}
|
||||||
|
##########SPARK ADJUST: END
|
||||||
# Globals to save package name, version, size and overall size.
|
# Globals to save package name, version, size and overall size.
|
||||||
DOWNLOAD_DISPLAY=
|
DOWNLOAD_DISPLAY=
|
||||||
DOWNLOAD_SIZE=0
|
DOWNLOAD_SIZE=0
|
||||||
|
Loading…
x
Reference in New Issue
Block a user