X-Original-To: alpine-devel@lists.alpinelinux.org Delivered-To: alpine-devel@lists.alpinelinux.org Received: from mail-bw0-f54.google.com (mail-bw0-f54.google.com [209.85.214.54]) by lists.alpinelinux.org (Postfix) with ESMTP id B66771EBFFA for ; Tue, 1 Mar 2011 16:30:43 +0000 (UTC) Received: by bwz12 with SMTP id 12so5245066bwz.13 for ; Tue, 01 Mar 2011 08:30:42 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:in-reply-to:references:date :message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=7u575w4gFpAIbnsH4hvNOSafz1bivt1wqs9pv+nOiYo=; b=QTalGAGt3ggcRRKC8sH/KKUZjXhAcm4K7Kcayt2iDy1dsLk8QKvMP1evBTEygFz5Mh W/XYH+qeD8zIh7lye9lF0urYb26pbXtNqh1KxHpDrbFOBg6dNADlnGC571a9LAxfUZY4 la+Wl+He8aYmdaEK3wsnFYXnyPlGF7lRqF/30= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; b=b7qlp2QvIyH4vkoiuJ7ARoxN9Hg7U5U6Tqp8EgFS7YIBVnfStv/AhfjIJTZYCR9bsp P3f7Uz46Bu8bpWl9Rq/BZwN34gDBZT9UzJAK0AyS9wGO1peXnv59IqgjczhodRoa1yW/ IrxGim/MuaHgqSYCYJhxK3tTQdf7msxWO6mmg= X-Mailinglist: alpine-devel Precedence: list List-Id: Alpine Development List-Unsubscribe: List-Post: List-Help: List-Subscribe: MIME-Version: 1.0 Received: by 10.204.46.210 with SMTP id k18mr2927754bkf.159.1298997042130; Tue, 01 Mar 2011 08:30:42 -0800 (PST) Received: by 10.204.73.78 with HTTP; Tue, 1 Mar 2011 08:30:42 -0800 (PST) In-Reply-To: References: Date: Tue, 1 Mar 2011 11:30:42 -0500 Message-ID: Subject: Re: [alpine-devel] more on setup-apkrepos From: Jeff Bilyk To: Natanael Copa Cc: alpine-devel@lists.alpinelinux.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable On Tue, Mar 1, 2011 at 10:37 AM, Natanael Copa wrot= e: > Hi, > > I'd like to iron how the setup-apkrepos should work. this is a stopper fo= r > alpine-conf-2.6 so some feedback is appreciated. > > I have done some minor cleanups and simplifications in the code. Most of = the > should not have any visible effect on execution. > > I still have a few things I think we should change though. > > * Too many questions are asked. I just want add a http repo. The setup-* > scripts should give the end user what he wants as quick as possible and t= hen > get out of the way. > > First I get (from setup-alpine): > Setup internet apk repositories? [y/N]? > > This could be avoided by adding it as an option to next step (select meth= od: > 'none' or 'done') I like it. > > Then I get the question: > > How would you like to set up internet apk repositories? > > I think this question is needed. I pick 'f' for automatically find fastes= t. > > Then I get: > > System release is: edge. =A0Change? (i.e., to upgrade) [y/N]: > > well, we dont really support downgrades and I already run edge. This > question should never have been asked. I select 'N' I harmony with keeping script simple, how about always setup repositories for current release? > > Then I get yet another question: > > Do you want to enable the testing repository? [y/N]: > > I pick 'N' for now. Regular users most likely aren't a) running edge and b) need testing repos, so we could probably always add this in commented. > > Now I get yet another question. > Do you want to update repository indexes? > (You must be connected when using remote repositories.) [y/N]: > > I think we dont need to ask for this. If we have any remote repos we can > just update it. If there are no remotes there is no reason to ask. We could always *try* to update and if it fails, it fails. > > I pick 'y' > > Finally done! > > phew. > > I got 5 questions. We need get that number down to 1 or maximum 2. > > oh... what if I wanted to just add a http repo for updates + my home made > repo? Then I'd need to re-run the setup-apkrepos. I run setup-apkrepos. > > How would you like to set up internet apk repositories? > I pick 'e' for enter manually. > > Before adding custom mirrors, do you want to clear > /etc/apk/repositories and start fresh? [y/n]: > > hum, what question is that? and if I dont remember what I had in > /etc/apk/repositories? Then I have to ctrl-c, cat the contents and re-run > the script. Here I cannot pick default either if unsure. I must make a > decision. How about always preserving existing repos and then appending changes made through setup-apkrepos? > > I want keep my previous run so i pick 'n' > > Now I get what I was wanted. > Please enter a local path or URL to the mirror: > > I enter /home/ncopa/.cache/apks > > Do you want to add another mirror? [y/n]: > This is actually good, but we could combine that with the above question: > > Enter a local path or URL to the mirror to add (or 'done') [done]: IMHO developpers who need to add a custom repo probably can just add the line to /etc/apk/repositories manually. > > Again I get the > Do you want to update repository indexes? > (You must be connected when using remote repositories.) [y/N]: y > Updating repository indexes... done. > > I start to think that we coudl just drop that question and just try updat= e > the index. If its not connected to internet the user have most likely cho= sed > to not setup the apkrepos at all and/or error message displayed will be k= ind > of expected. > > Any ideas how we reduce number of questions and try make the script get o= ut > of the way? > > -nc > > > --- > Unsubscribe: =A0alpine-devel+unsubscribe@lists.alpinelinux.org > Help: =A0 =A0 =A0 =A0 alpine-devel+help@lists.alpinelinux.org > --- > > --=20 Jeff --- Unsubscribe: alpine-devel+unsubscribe@lists.alpinelinux.org Help: alpine-devel+help@lists.alpinelinux.org ---