Commit 379c458a authored by Natanael Copa's avatar Natanael Copa

setup-apkrepos: always update the index, best effort

parent 627a29ba
...@@ -301,21 +301,6 @@ update_apk_repositories() { ...@@ -301,21 +301,6 @@ update_apk_repositories() {
echo "done." echo "done."
} }
prompt_update_apk() {
while true; do
echo -e "\nDo you want to update repository indexes?"
echo -n "(You must be connected when using remote repositories.) [y/N]: "
default_read update_repo_indexes "n"
case "$update_repo_indexes" in
[yY])
echo -n "Updating repository indexes... "
apk update -q && echo "done."
break
;;
[nN]) break;;
esac
done
}
# main # main
prompt_setup_method prompt_setup_method
...@@ -335,4 +320,6 @@ if [ "$setup_method" != "e" ]; then ...@@ -335,4 +320,6 @@ if [ "$setup_method" != "e" ]; then
update_apk_repositories update_apk_repositories
fi fi
prompt_update_apk echo -n "Updating repository indexes... "
apk update -q && echo "done."
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment