Skip to content
Snippets Groups Projects
Unverified Commit 47dc9a0d authored by nee's avatar nee Committed by Christopher Baines
Browse files

guix: utils: Add version-major.

* guix/utils.scm (version-major): New procedure.
parent 1e52fd83
No related branches found
No related tags found
No related merge requests found
......@@ -82,6 +82,7 @@ (define-module (guix utils)
version>=?
version-prefix
version-major+minor
version-major
guile-version>?
string-replace-substring
arguments-from-environment-variable
......@@ -497,6 +498,10 @@ (define (version-major+minor version-string)
minor version numbers from version-string."
(version-prefix version-string 2))
(define (version-major version-string)
"Return the major version number as string from the version-string."
(version-prefix version-string 1))
(define (version>? a b)
"Return #t when A denotes a version strictly newer than B."
(eq? '> (version-compare a b)))
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment