GNU bug report logs - #44657
[PATCH] guix-install.sh: don't throw away release candidates when picking the laste version

Previous Next

Package: guix-patches;

Reported by: Daniel Brooks <db48x <at> db48x.net>

Date: Sun, 15 Nov 2020 16:40:01 UTC

Severity: normal

Tags: patch

Done: Ludovic Courtès <ludo <at> gnu.org>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 44657 in the body.
You can then email your comments to 44657 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to guix-patches <at> gnu.org:
bug#44657; Package guix-patches. (Sun, 15 Nov 2020 16:40:01 GMT) Full text and rfc822 format available.

Acknowledgement sent to Daniel Brooks <db48x <at> db48x.net>:
New bug report received and forwarded. Copy sent to guix-patches <at> gnu.org. (Sun, 15 Nov 2020 16:40:01 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Daniel Brooks <db48x <at> db48x.net>
To: Guix Patches List <guix-patches <at> gnu.org>
Subject: [PATCH] guix-install.sh: don't throw away release candidates when
 picking the laste version
Date: Sun, 15 Nov 2020 08:39:26 -0800
[0001-guix-install.sh-don-t-throw-away-release-candidates-.patch (text/x-patch, inline)]
From 6d4e4bb8b61b2095b6d2ac9691184a9c478ae8b5 Mon Sep 17 00:00:00 2001
From: Daniel Brooks <db48x <at> db48x.net>
Date: Sun, 15 Nov 2020 08:38:14 -0800
Subject: [PATCH] guix-install.sh: don't throw away release candidates when
 picking the latest version

* etc/guix-install.sh (guix_get_bin_list): modify regexes to allow rcN syntax
---
 etc/guix-install.sh | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/etc/guix-install.sh b/etc/guix-install.sh
index 7f0dd00e53..f0a1550a74 100755
--- a/etc/guix-install.sh
+++ b/etc/guix-install.sh
@@ -6,6 +6,7 @@
 # Copyright © 2019, 2020 Tobias Geerinckx-Rice <me <at> tobias.gr>
 # Copyright © 2020 Morgan Smith <Morgan.J.Smith <at> outlook.com>
 # Copyright © 2020 Simon Tournier <zimon.toutoune <at> gmail.com>
+# Copyright © 2020 Daniel Brooks <db48x <at> db48x.net>
 #
 # This file is part of GNU Guix.
 #
@@ -60,6 +61,7 @@ INF="[ INFO ] "
 
 DEBUG=0
 GNU_URL="https://ftp.gnu.org/gnu/guix/"
+#GNU_URL="https://alpha.gnu.org/gnu/guix/"
 OPENPGP_SIGNING_KEY_ID="3CE464558A84FDC69DB40CFB090B11993D9AEBB5"
 
 # This script needs to know where root's home directory is.  However, we
@@ -228,11 +230,11 @@ guix_get_bin_list()
 
     # Filter only version and architecture
     bin_ver_ls=("$(wget -qO- "$gnu_url" \
-        | sed -n -e 's/.*guix-binary-\([0-9.]*\)\..*.tar.xz.*/\1/p' \
+        | sed -n -e 's/.*guix-binary-\([0-9.]*[a-z0-9]*\)\..*.tar.xz.*/\1/p' \
         | sort -Vu)")
 
     latest_ver="$(echo "$bin_ver_ls" \
-                       | grep -oE "([0-9]{1,2}\.){2}[0-9]{1,2}" \
+                       | grep -oE "([0-9]{1,2}\.){2}[0-9]{1,2}[a-z0-9]*" \
                        | tail -n1)"
 
     default_ver="guix-binary-${latest_ver}.${ARCH_OS}"
-- 
2.26.2





Information forwarded to guix-patches <at> gnu.org:
bug#44657; Package guix-patches. (Sun, 15 Nov 2020 17:15:02 GMT) Full text and rfc822 format available.

Message #8 received at 44657 <at> debbugs.gnu.org (full text, mbox):

From: zimoun <zimon.toutoune <at> gmail.com>
To: Daniel Brooks <db48x <at> db48x.net>, 44657 <at> debbugs.gnu.org
Subject: Re: [bug#44657] [PATCH] guix-install.sh: don't throw away release
 candidates when picking the laste version
Date: Sun, 15 Nov 2020 18:05:50 +0100
Hi,

Thank you for your patch.

On Sun, 15 Nov 2020 at 08:39, Daniel Brooks <db48x <at> db48x.net> wrote:
  
>  DEBUG=0
>  GNU_URL="https://ftp.gnu.org/gnu/guix/"
> +#GNU_URL="https://alpha.gnu.org/gnu/guix/"
>  OPENPGP_SIGNING_KEY_ID="3CE464558A84FDC69DB40CFB090B11993D9AEBB5"

Did you forget to remove the line you added for testing? I guess.


All the best,
simon




Information forwarded to guix-patches <at> gnu.org:
bug#44657; Package guix-patches. (Sun, 15 Nov 2020 17:26:02 GMT) Full text and rfc822 format available.

Message #11 received at 44657 <at> debbugs.gnu.org (full text, mbox):

From: Daniel Brooks <db48x <at> db48x.net>
To: zimoun <zimon.toutoune <at> gmail.com>
Cc: 44657 <at> debbugs.gnu.org
Subject: Re: [bug#44657] [PATCH] guix-install.sh: don't throw away release
 candidates when picking the laste version
Date: Sun, 15 Nov 2020 09:25:10 -0800
zimoun <zimon.toutoune <at> gmail.com> writes:

> On Sun, 15 Nov 2020 at 08:39, Daniel Brooks <db48x <at> db48x.net> wrote:
>   
>>  DEBUG=0
>>  GNU_URL="https://ftp.gnu.org/gnu/guix/"
>> +#GNU_URL="https://alpha.gnu.org/gnu/guix/"
>>  OPENPGP_SIGNING_KEY_ID="3CE464558A84FDC69DB40CFB090B11993D9AEBB5"
>
> Did you forget to remove the line you added for testing? I guess.

No, I just figured that leaving it there for the next person wouldn't
hurt. Keep it or remove it, whichever you prefer.

db48x




Reply sent to Ludovic Courtès <ludo <at> gnu.org>:
You have taken responsibility. (Sun, 15 Nov 2020 20:45:02 GMT) Full text and rfc822 format available.

Notification sent to Daniel Brooks <db48x <at> db48x.net>:
bug acknowledged by developer. (Sun, 15 Nov 2020 20:45:02 GMT) Full text and rfc822 format available.

Message #16 received at 44657-done <at> debbugs.gnu.org (full text, mbox):

From: Ludovic Courtès <ludo <at> gnu.org>
To: Daniel Brooks <db48x <at> db48x.net>
Cc: 44657-done <at> debbugs.gnu.org
Subject: Re: [bug#44657] [PATCH] guix-install.sh: don't throw away release
 candidates when picking the laste version
Date: Sun, 15 Nov 2020 21:44:06 +0100
Hi,

Daniel Brooks <db48x <at> db48x.net> skribis:

>>From 6d4e4bb8b61b2095b6d2ac9691184a9c478ae8b5 Mon Sep 17 00:00:00 2001
> From: Daniel Brooks <db48x <at> db48x.net>
> Date: Sun, 15 Nov 2020 08:38:14 -0800
> Subject: [PATCH] guix-install.sh: don't throw away release candidates when
>  picking the latest version
>
> * etc/guix-install.sh (guix_get_bin_list): modify regexes to allow rcN syntax

Applied, thanks!

Ludo’.




bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Mon, 14 Dec 2020 12:24:06 GMT) Full text and rfc822 format available.

This bug report was last modified 4 years and 187 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.