summaryrefslogtreecommitdiff
path: root/setup-apkrepos.in
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2011-03-02 13:12:18 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2011-03-02 13:12:18 +0000
commit379c458abd43155c97e6610db9b2f917c9711a83 (patch)
treebf61e3d7ec2e933038f4752e2d34a3e31450ef96 /setup-apkrepos.in
parent627a29ba5161354d8cf24a9f0d09e3b5823d5313 (diff)
downloadalpine-conf-379c458abd43155c97e6610db9b2f917c9711a83.zip
setup-apkrepos: always update the index, best effort
Diffstat (limited to 'setup-apkrepos.in')
-rwxr-xr-xsetup-apkrepos.in19
1 files changed, 3 insertions, 16 deletions
diff --git a/setup-apkrepos.in b/setup-apkrepos.in
index 22f6387..310125a 100755
--- a/setup-apkrepos.in
+++ b/setup-apkrepos.in
@@ -301,21 +301,6 @@ update_apk_repositories() {
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
prompt_setup_method
@@ -335,4 +320,6 @@ if [ "$setup_method" != "e" ]; then
update_apk_repositories
fi
-prompt_update_apk
+echo -n "Updating repository indexes... "
+apk update -q && echo "done."
+