summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--guix/import/gnome.scm7
1 files changed, 5 insertions, 2 deletions
diff --git a/guix/import/gnome.scm b/guix/import/gnome.scm
index 43966c1028..3915f19e84 100644
--- a/guix/import/gnome.scm
+++ b/guix/import/gnome.scm
@@ -62,10 +62,13 @@ not be determined."
(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