mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2024-12-25 05:48:07 -05:00
import: gnome: Do not require even minor for two-number version strings.
That way, "guix refresh gnome-keyring" will properly return "42.1" instead of "42.0". Reported by Maxim Cournoyer. * guix/import/gnome.scm (latest-gnome-release)[even-minor-version?]: Tweak for GNOME applications.
This commit is contained in:
parent
0f2776399e
commit
61b63e7fa7
1 changed files with 5 additions and 2 deletions
|
@ -62,10 +62,13 @@ (define %not-dot
|
|||
|
||||
(define (even-minor-version? version)
|
||||
(match (string-tokenize version %not-dot)
|
||||
(((= string->number major) (= string->number minor) . rest)
|
||||
(((= string->number major) (= string->number minor) micro)
|
||||
;; This is for things like GLib, with version strings like "2.72.3".
|
||||
(and minor (even? minor)))
|
||||
(((= string->number major) . _)
|
||||
;; It should at last start with a digit.
|
||||
;; GNOME applications have version strings like "42.1" (only two
|
||||
;; integers) and are not subject to the odd/even policy. MAJOR should
|
||||
;; be a valid number though.
|
||||
major)))
|
||||
|
||||
(define upstream-name
|
||||
|
|
Loading…
Reference in a new issue