Mail archive

[alpine-devel] Re: [PATCH] alpine-conf: add script to add dl-3 internet repos from setup-alpine script

From: Natanael Copa <>
Date: Tue, 28 Dec 2010 15:42:23 +0100

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";;
                        # release is in x.y.z format. lets cut the last
        if [ -z "$repo" ]; then
          #prompt user

2. we should append the arch (right Timo?)

        case "$(uname -m)" in
                i[3-9]86) arch=x86;;
                x86_64) arch=x86_64;;

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 - \
                | head -n 1)


That said, we gotta start from somewhere so I applied your patch.

Thanks for looking into this!


Received on Tue Dec 28 2010 - 15:42:23 UTC