[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
01/06: import: gnome: Exclude version numbers that do not start with a d
From: |
guix-commits |
Subject: |
01/06: import: gnome: Exclude version numbers that do not start with a digit. |
Date: |
Wed, 17 Mar 2021 18:11:21 -0400 (EDT) |
civodul pushed a commit to branch master
in repository guix.
commit c81eeabb99f89f2b7bf1417bfbf992ba47af02a5
Author: Ludovic Courtès <ludo@gnu.org>
AuthorDate: Wed Mar 17 15:03:19 2021 +0100
import: gnome: Exclude version numbers that do not start with a digit.
Fixes a bug whereby NetworkManager would be updated to version "rc2".
* guix/import/gnome.scm (latest-gnome-release)[even-minor-version?]:
Change catch-all case to return #f when the first part is not a digit.
---
guix/import/gnome.scm | 7 ++++---
1 file changed, 4 insertions(+), 3 deletions(-)
diff --git a/guix/import/gnome.scm b/guix/import/gnome.scm
index 436ec88..c0ee1bf 100644
--- a/guix/import/gnome.scm
+++ b/guix/import/gnome.scm
@@ -1,5 +1,5 @@
;;; GNU Guix --- Functional package management for GNU
-;;; Copyright © 2017, 2019 Ludovic Courtès <ludo@gnu.org>
+;;; Copyright © 2017, 2019, 2021 Ludovic Courtès <ludo@gnu.org>
;;;
;;; This file is part of GNU Guix.
;;;
@@ -64,8 +64,9 @@ not be determined."
(match (string-tokenize version %not-dot)
(((= string->number major) (= string->number minor) . rest)
(and minor (even? minor)))
- (_
- #t))) ;cross fingers
+ (((= string->number major) . _)
+ ;; It should at last start with a digit.
+ major)))
(define upstream-name
;; Some packages like "NetworkManager" have camel-case names.
- branch master updated (c37f78a -> 966e61f), guix-commits, 2021/03/17
- 02/06: http-client: 'http-fetch' and 'http-fetch/cached' accept #:log-port., guix-commits, 2021/03/17
- 04/06: doc: Tweak "Invoking guix refresh" node., guix-commits, 2021/03/17
- 01/06: import: gnome: Exclude version numbers that do not start with a digit.,
guix-commits <=
- 03/06: import: gnome: Silence URL redirect messages., guix-commits, 2021/03/17
- 06/06: gnu: Add libucl., guix-commits, 2021/03/17
- 05/06: gnu: Use autoconf instead of autoconf-wrapper when possible., guix-commits, 2021/03/17