This commit is contained in:
Yann Dupont 2021-11-02 22:23:00 +01:00
parent dbc20ba213
commit 00d0f4e011
2 changed files with 6 additions and 5 deletions

View file

@ -89,13 +89,9 @@
#:use-module (gnu packages web)
#:use-module (gnu packages pretty-print)
#:use-module (gnu packages virtualization)
#:use-module (glicid utils)
)
;; helper function
(define (latest-version v1 v2) (if (string> (package-version v1) (package-version v2)) v1 v2))
;;;;;;;;
(define-public keepalived

5
glicid/utils.scm Normal file
View file

@ -0,0 +1,5 @@
(define-module (glicid utils))
;; helper function
;; return latest version of 2 packages
(define-public (latest-version v1 v2) (if (string> (package-version v1) (package-version v2)) v1 v2))