diff options
author | Natanael Copa <ncopa@alpinelinux.org> | 2017-06-12 18:19:46 +0000 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2017-06-12 18:19:46 +0000 |
commit | fe85964591759923e783be970405d145be201e91 (patch) | |
tree | cf72e3ff6e5a6a2a7ac87bd71c6225d5463fd983 /main/lxc/alpine-default-mirror.patch | |
parent | b9cca35628a723105a18c1dd2ed657118db61303 (diff) | |
download | aports-fe85964591759923e783be970405d145be201e91.tar.bz2 aports-fe85964591759923e783be970405d145be201e91.tar.xz |
main/lxc: upgrade to 2.0.8
Diffstat (limited to 'main/lxc/alpine-default-mirror.patch')
-rw-r--r-- | main/lxc/alpine-default-mirror.patch | 59 |
1 files changed, 0 insertions, 59 deletions
diff --git a/main/lxc/alpine-default-mirror.patch b/main/lxc/alpine-default-mirror.patch deleted file mode 100644 index 359768d904..0000000000 --- a/main/lxc/alpine-default-mirror.patch +++ /dev/null @@ -1,59 +0,0 @@ -From 72ead1c05401789ced73d9e3f47d1c11aa6dd951 Mon Sep 17 00:00:00 2001 -From: Jakub Jirutka <jakub@jirutka.cz> -Date: Tue, 14 Mar 2017 17:35:46 +0100 -Subject: [PATCH 2/2] lxc-alpine: use dl-cdn.a.o as default mirror instead of - random one - -Some mirrors from the mirrors list are not very reliable and it seems -that no one really wants to use some random mirror as the default -option. - -Signed-off-by: Jakub Jirutka <jakub@jirutka.cz> -Upstream-Issue: https://github.com/lxc/lxc/pull/1461 ---- - templates/lxc-alpine.in | 11 +++-------- - 1 file changed, 3 insertions(+), 8 deletions(-) - -diff --git a/templates/lxc-alpine.in b/templates/lxc-alpine.in -index fd281f8..44173ee 100644 ---- a/templates/lxc-alpine.in -+++ b/templates/lxc-alpine.in -@@ -46,7 +46,7 @@ ebf31683b56410ecc4c00acd9f6e2839e237a3b62b5ae7ef686705c7ba0396a9 alpine-devel@l - 12f899e55a7691225603d6fb3324940fc51cd7f133e7ead788663c2b7eecb00c alpine-devel@lists.alpinelinux.org-5261cecb.rsa.pub" - - readonly APK_KEYS_URI='http://alpinelinux.org/keys' --readonly MIRRORS_LIST_URL='http://rsync.alpinelinux.org/alpine/MIRRORS.txt' -+readonly DEFAULT_MIRROR_URL='http://dl-cdn.alpinelinux.org/alpine' - - : ${APK_KEYS_DIR:=/etc/apk/keys} - if ! ls "$APK_KEYS_DIR"/alpine* >/dev/null 2>&1; then -@@ -76,7 +76,7 @@ usage() { - to the host arch. - -d, --debug Run this script in a debug mode (set -x and wget w/o -q). - -F, --flush-cache Remove cached files before build. -- -m URL --mirror=URL The Alpine mirror to use; defaults to random mirror. -+ -m URL --mirror=URL The Alpine mirror to use; defaults to $DEFAULT_MIRROR_URL. - -r VER, --release=VER The Alpine release branch to install; default is the - latest stable. - -@@ -130,11 +130,6 @@ parse_arch() { - esac - } - --random_mirror_url() { -- local url=$(fetch "$MIRRORS_LIST_URL" | shuf -n 1) -- [ -n "$url" ] && echo "$url" --} -- - run_exclusively() { - local lock_name="$1" - local timeout=$2 -@@ -477,7 +472,7 @@ extra_packages="$@" - # Set global variables. - readonly DEBUG="$debug" - readonly FLUSH_CACHE="$flush_cache" --readonly MIRROR_URL="${mirror_url:-$(random_mirror_url)}" -+readonly MIRROR_URL="${mirror_url:-$DEFAULT_MIRROR_URL}" - - # Validate options. - [ -n "$name" ] || die 1 'Missing required option --name' |