aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2013-06-11 10:53:33 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2013-06-11 11:02:19 +0000
commitc8f5f53d2e9f578bc6abaf4d86f8b37eda9950d7 (patch)
tree370fdaa10de896311333bb39f53c93801ae2687a
parent5d8cd099b90661aadd038a1699fb5499a3dd53c0 (diff)
downloadalpine-conf-c8f5f53d2e9f578bc6abaf4d86f8b37eda9950d7.tar.bz2
alpine-conf-c8f5f53d2e9f578bc6abaf4d86f8b37eda9950d7.tar.xz
setup-apkrepos: add commented edge/main and edge/testing for stable
-rwxr-xr-xsetup-apkrepos.in6
1 files changed, 5 insertions, 1 deletions
diff --git a/setup-apkrepos.in b/setup-apkrepos.in
index da47f79..ab48471 100755
--- a/setup-apkrepos.in
+++ b/setup-apkrepos.in
@@ -108,7 +108,11 @@ get_alpine_release() {
add_mirror() {
local mirror="$1"
echo "${mirror%/}/${release}/main" >> $APKREPOS_PATH
- echo "#${mirror%/}/${release}/testing" >> $APKREPOS_PATH
+ case "$release" in
+ v[0-9]*)
+ echo "#${mirror%/}/edge/main" >> $APKREPOS_PATH;;
+ esac
+ echo "#${mirror%/}/edge/testing" >> $APKREPOS_PATH
echo "" >> $APKREPOS_PATH
echo "Added mirror $(get_hostname_from_url $mirror)"
}