X-Original-To: alpine-devel@lists.alpinelinux.org Delivered-To: alpine-devel@lists.alpinelinux.org Received: from mail.wtbts.no (mail.wtbts.no [213.234.126.131]) by lists.alpinelinux.org (Postfix) with ESMTP id 4F2141EC80A for ; Mon, 28 Feb 2011 15:21:58 +0000 (UTC) Received: from localhost (bsna.nor.wtbts.net [127.0.0.1]) by mail.wtbts.no (Postfix) with ESMTP id E35BAAE4001 for ; Mon, 28 Feb 2011 15:21:56 +0000 (UTC) X-Virus-Scanned: Yes Received: from mail.wtbts.no ([127.0.0.1]) by localhost (bsna.nor.wtbts.net [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id FEx-1AD8QJ2J for ; Mon, 28 Feb 2011 15:21:40 +0000 (UTC) Received: from mail.ytre.org (extmail.nor.wtbts.net [10.65.72.14]) by mail.wtbts.no (Postfix) with ESMTP id 87213376073 for ; Mon, 28 Feb 2011 15:21:40 +0000 (UTC) Received: from mail.ytre.org (localhost [127.0.0.1]) by mail.ytre.org (Postfix) with ESMTP id 4823860A7EE5D for ; Mon, 28 Feb 2011 15:21:40 +0000 (UTC) Received: from mail.ytre.org (localhost [127.0.0.1]) by mail.ytre.org (Postfix) with ESMTP id 20F5962172B83 for ; Mon, 28 Feb 2011 15:21:39 +0000 (UTC) X-Mailinglist: alpine-devel Precedence: list List-Id: Alpine Development List-Unsubscribe: List-Post: List-Help: List-Subscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Date: Mon, 28 Feb 2011 16:21:39 +0100 From: Natanael Copa To: Subject: [alpine-devel] comments on setup-apkrepos Message-ID: <076ca6456d9b67f0938f5f1fbd8b3720@ytre.org> X-Sender: ncopa@alpinelinux.org User-Agent: Roundcube Webmail/0.5 X-Virus-Scanned: ClamAV using ClamSMTP Hi, Nice work that has been done on setup-apkrepos! I have a few minor comments. 1) Try avoid == operator. Its bash specific, and even if it is implemented in busybox ash, its no guarantee it will in future. replace: if [ $var == "something" ]; then with: if [ "$var" = "something" ]; then For the specific case in setup-apkrepos, I think that case ... in would be better: case "$setup_method" in random) get_random_method;; fastest) get_fastest_mirror;; mirror_list) prompt_mirror_list;; custom_mirror) prompt_clear_repositories;; esac 2) I dont like the 2 y/n questions at setup-alpine end. Setup internet apk repositories? [y/N]? Change timezone (default is UTC)? [y/N]? I think we don't need those questions. Better would be How would you like to set up the apk repostories? 1) Automatically... ... 5) do not setup apk repositories at all. Please select how to setup APK repositories [5]: Then we have 1 less question to ask user. Same goes for timezone. If you are ok with it I'll change the above. I will have a look at the setup-disk script and then make an alpine-conf 2.6 release with the new stuff. Thanks! --- Unsubscribe: alpine-devel+unsubscribe@lists.alpinelinux.org Help: alpine-devel+help@lists.alpinelinux.org ---