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 73FD01EB587 for ; Tue, 28 Dec 2010 14:42:29 +0000 (UTC) Received: from localhost (bsna.nor.wtbts.net [127.0.0.1]) by mail.wtbts.no (Postfix) with ESMTP id 9974CAE4002; Tue, 28 Dec 2010 14:42:28 +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 mToZYsmO3j2O; Tue, 28 Dec 2010 14:42:26 +0000 (UTC) Received: from mail.ytre.org (extmail.nor.wtbts.net [10.65.72.14]) by mail.wtbts.no (Postfix) with ESMTP id 1B553AE4001; Tue, 28 Dec 2010 14:42:26 +0000 (UTC) Received: from mail.ytre.org (localhost [127.0.0.1]) by mail.ytre.org (Postfix) with ESMTP id DFD0E60A89E56; Tue, 28 Dec 2010 14:42:25 +0000 (UTC) Received: from ncopa-desktop.nor.wtbts.net (unknown [10.65.65.1]) (using TLSv1 with cipher DHE-RSA-AES128-SHA (128/128 bits)) (No client certificate requested) (Authenticated sender: ncopa@ytre.org) by mail.ytre.org (Postfix) with ESMTPSA id 870F360A89E52; Tue, 28 Dec 2010 14:42:25 +0000 (UTC) Date: Tue, 28 Dec 2010 15:42:23 +0100 From: Natanael Copa To: Jeff Bilyk Cc: alpine-devel@lists.alpinelinux.org Subject: [alpine-devel] Re: [PATCH] alpine-conf: add script to add dl-3 internet repos from setup-alpine script Message-ID: <20101228154223.5155c4ec@ncopa-desktop.nor.wtbts.net> In-Reply-To: References: <1293137371-3175-1-git-send-email-jbilyk@gmail.com> X-Mailer: Claws Mail 3.7.8 (GTK+ 2.22.1; x86_64-unknown-linux-gnu) 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=US-ASCII Content-Transfer-Encoding: 7bit X-Virus-Scanned: ClamAV using ClamSMTP On Mon, 27 Dec 2010 18:10:52 -0500 Jeff Bilyk wrote: > Hey Natanael, > > Thoughts on this patch? sorry for beeing slow :-( 1. we should autodetect if its v2.2+ or edge. I don't think we need to backport to pre v2.2. Also, we do not want modify this script everytiem we make new release. So what do you think about something like: release=$(cut -f1 /etc/alpine-release) case "$release" in *_git*) repo="edge";; [0-9]*.[0-9]*.[0-9]*) # release is in x.y.z format. lets cut the last digit repo=v${release%.[0-9]*};; esac if [ -z "$repo" ]; then #prompt user fi 2. we should append the arch (right Timo?) case "$(uname -m)" in i[3-9]86) arch=x86;; x86_64) arch=x86_64;; esac 3. we should not have any hardcoded repo (dl-3.a.o) but we should fetch a list of mirrors with wget and either present a choice for the users or just pick one without any questions asked. I'd prefer the latter. mirror=$(wget -q -O - \ http://www.alpinelinux.org/alpine/MIRRORS.txt \ | head -n 1) url=$mirror/$repo/$arch ... That said, we gotta start from somewhere so I applied your patch. Thanks for looking into this! -nc --- Unsubscribe: alpine-devel+unsubscribe@lists.alpinelinux.org Help: alpine-devel+help@lists.alpinelinux.org ---