summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Brooks <db48x@db48x.net>2020-11-15 08:38:14 -0800
committerLudovic Courtès <ludo@gnu.org>2020-11-18 15:35:17 +0100
commit207c3c594e22b678ddcea8ebc78f19b839612187 (patch)
tree55ac7fe1c11fa5370a19ee6519eca3a738ca59af
parent7a04d80921fd1a4784517a734ed0c92cb60f1828 (diff)
guix-install.sh: don't throw away release candidates when picking the latest versionv1.2.0rc2
* etc/guix-install.sh (guix_get_bin_list): modify regexes to allow rcN syntax Signed-off-by: Ludovic Courtès <ludo@gnu.org>
-rwxr-xr-xetc/guix-install.sh6
1 files changed, 4 insertions, 2 deletions
diff --git a/etc/guix-install.sh b/etc/guix-install.sh
index 7f0dd00e532..f0a1550a74a 100755
--- a/etc/guix-install.sh
+++ b/etc/guix-install.sh
@@ -6,6 +6,7 @@
6# Copyright © 2019, 2020 Tobias Geerinckx-Rice <me@tobias.gr> 6# Copyright © 2019, 2020 Tobias Geerinckx-Rice <me@tobias.gr>
7# Copyright © 2020 Morgan Smith <Morgan.J.Smith@outlook.com> 7# Copyright © 2020 Morgan Smith <Morgan.J.Smith@outlook.com>
8# Copyright © 2020 Simon Tournier <zimon.toutoune@gmail.com> 8# Copyright © 2020 Simon Tournier <zimon.toutoune@gmail.com>
9# Copyright © 2020 Daniel Brooks <db48x@db48x.net>
9# 10#
10# This file is part of GNU Guix. 11# This file is part of GNU Guix.
11# 12#
@@ -60,6 +61,7 @@ INF="[ INFO ] "
60 61
61DEBUG=0 62DEBUG=0
62GNU_URL="https://ftp.gnu.org/gnu/guix/" 63GNU_URL="https://ftp.gnu.org/gnu/guix/"
64#GNU_URL="https://alpha.gnu.org/gnu/guix/"
63OPENPGP_SIGNING_KEY_ID="3CE464558A84FDC69DB40CFB090B11993D9AEBB5" 65OPENPGP_SIGNING_KEY_ID="3CE464558A84FDC69DB40CFB090B11993D9AEBB5"
64 66
65# This script needs to know where root's home directory is. However, we 67# This script needs to know where root's home directory is. However, we
@@ -228,11 +230,11 @@ guix_get_bin_list()
228 230
229 # Filter only version and architecture 231 # Filter only version and architecture
230 bin_ver_ls=("$(wget -qO- "$gnu_url" \ 232 bin_ver_ls=("$(wget -qO- "$gnu_url" \
231 | sed -n -e 's/.*guix-binary-\([0-9.]*\)\..*.tar.xz.*/\1/p' \ 233 | sed -n -e 's/.*guix-binary-\([0-9.]*[a-z0-9]*\)\..*.tar.xz.*/\1/p' \
232 | sort -Vu)") 234 | sort -Vu)")
233 235
234 latest_ver="$(echo "$bin_ver_ls" \ 236 latest_ver="$(echo "$bin_ver_ls" \
235 | grep -oE "([0-9]{1,2}\.){2}[0-9]{1,2}" \ 237 | grep -oE "([0-9]{1,2}\.){2}[0-9]{1,2}[a-z0-9]*" \
236 | tail -n1)" 238 | tail -n1)"
237 239
238 default_ver="guix-binary-${latest_ver}.${ARCH_OS}" 240 default_ver="guix-binary-${latest_ver}.${ARCH_OS}"