diff options
author | Natanael Copa <ncopa@alpinelinux.org> | 2011-03-02 13:12:18 +0000 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2011-03-02 13:12:18 +0000 |
commit | 379c458abd43155c97e6610db9b2f917c9711a83 (patch) | |
tree | bf61e3d7ec2e933038f4752e2d34a3e31450ef96 /setup-apkrepos.in | |
parent | 627a29ba5161354d8cf24a9f0d09e3b5823d5313 (diff) | |
download | alpine-conf-379c458abd43155c97e6610db9b2f917c9711a83.zip |
setup-apkrepos: always update the index, best effort
Diffstat (limited to 'setup-apkrepos.in')
-rwxr-xr-x | setup-apkrepos.in | 19 |
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." + |