diff options
Diffstat (limited to 'src/util.lisp')
-rw-r--r-- | src/util.lisp | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/src/util.lisp b/src/util.lisp index a2d4cde..4e93ea0 100644 --- a/src/util.lisp +++ b/src/util.lisp @@ -48,7 +48,14 @@ (dpkg-version-compare x ">=" y)) (defun dpkg-version-compare (x r y) - (= 0 (nth-value 2 (run-program (list "dpkg" "--compare-versions" x r y) + (= 0 (nth-value 2 (run-program `("dpkg" "--compare-versions" + ,(etypecase x + (string x) + (number (format nil "~A" x))) + ,r + ,(etypecase y + (string y) + (number (format nil "~A" y)))) :ignore-error-status t)))) |