aboutsummaryrefslogtreecommitdiffstats
path: root/ci.d
diff options
context:
space:
mode:
authorLoïc Hoguin <[email protected]>2019-06-29 11:00:36 +0200
committerLoïc Hoguin <[email protected]>2019-06-29 11:00:36 +0200
commitdba0d2df42cc304e54a1f9781f1c5270931754b8 (patch)
tree29fce7f77729f9cfe1b2b8e3481ec7718a062255 /ci.d
parent73c263e194574d3d974fae7846a71961e8b4499d (diff)
downloadci-dba0d2df42cc304e54a1f9781f1c5270931754b8.tar.gz
ci-dba0d2df42cc304e54a1f9781f1c5270931754b8.tar.bz2
ci-dba0d2df42cc304e54a1f9781f1c5270931754b8.zip
Update alpine packages
I have not tested the apk_install_erlang() function but it should be doing roughly what we want. Test it on the next rebuild.
Diffstat (limited to 'ci.d')
-rw-r--r--ci.d/apk10
1 files changed, 10 insertions, 0 deletions
diff --git a/ci.d/apk b/ci.d/apk
index e622754..5918b99 100644
--- a/ci.d/apk
+++ b/ci.d/apk
@@ -9,3 +9,13 @@ apk_upgrade() {
apk_install() {
lxc_do apk add "$@"
}
+
+# apk_install_erlang
+#
+# Necessary because erlang has been split up into
+# a zillion silly packages.
+apk_install_erlang() {
+ VSN=`lxc_do apk search -x erlang | cut -d- -f 2-`
+ ERLANG=`lxc_do apk search erlang | sed s/-$VSN//`
+ lxc_do apk add $ERLANG
+}