mirror of
https://gitee.com/spark-store-project/spark-store
synced 2025-11-04 16:22:19 +08:00
统一将获取uri的改成apt-get
This commit is contained in:
parent
4cd3ca56e0
commit
49829f8d3c
@ -323,10 +323,12 @@ get_uris(){
|
|||||||
echo "# apt-fast mirror list: $(date)" > "$DLLIST"
|
echo "# apt-fast mirror list: $(date)" > "$DLLIST"
|
||||||
#NOTE: aptitude doesn't have this functionality, so we use apt-get to get
|
#NOTE: aptitude doesn't have this functionality, so we use apt-get to get
|
||||||
# package URIs.
|
# package URIs.
|
||||||
case "$_APTMGR" in
|
# case "$_APTMGR" in
|
||||||
apt|apt-get) uri_mgr=$_APTMGR;;
|
# apt|apt-get) uri_mgr=$_APTMGR;;
|
||||||
*) uri_mgr=apt-get;;
|
# *) uri_mgr=apt-get;;
|
||||||
esac
|
# esac
|
||||||
|
# NOTE:apt可能出现变动,不建议在脚本中使用,因此在此统一改用apt-get
|
||||||
|
uri_mgr=apt-get
|
||||||
uris_full="$("$uri_mgr" "${APT_SCRIPT_WARNING[@]}" -y --print-uris "$@")"
|
uris_full="$("$uri_mgr" "${APT_SCRIPT_WARNING[@]}" -y --print-uris "$@")"
|
||||||
uris_full_ret="$?"
|
uris_full_ret="$?"
|
||||||
if [ "$uris_full_ret" -ne 0 ]
|
if [ "$uris_full_ret" -ne 0 ]
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user