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.
This commit is contained in:
parent
c37f78a9f5
commit
c81eeabb99
1 changed files with 4 additions and 3 deletions
|
@ -1,5 +1,5 @@
|
||||||
;;; GNU Guix --- Functional package management for GNU
|
;;; 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.
|
;;; This file is part of GNU Guix.
|
||||||
;;;
|
;;;
|
||||||
|
@ -64,8 +64,9 @@ not be determined."
|
||||||
(match (string-tokenize version %not-dot)
|
(match (string-tokenize version %not-dot)
|
||||||
(((= string->number major) (= string->number minor) . rest)
|
(((= string->number major) (= string->number minor) . rest)
|
||||||
(and minor (even? minor)))
|
(and minor (even? minor)))
|
||||||
(_
|
(((= string->number major) . _)
|
||||||
#t))) ;cross fingers
|
;; It should at last start with a digit.
|
||||||
|
major)))
|
||||||
|
|
||||||
(define upstream-name
|
(define upstream-name
|
||||||
;; Some packages like "NetworkManager" have camel-case names.
|
;; Some packages like "NetworkManager" have camel-case names.
|
||||||
|
|
Reference in a new issue