Commit eeef89f3eb766dbd394e9d3f4facbfd4c38a2174

Thomas de Grivel 2019-10-16T11:50:53

fix OpenBSD pkg

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
diff --git a/unix/openbsd.lisp b/unix/openbsd.lisp
index ab7078d..5b98657 100644
--- a/unix/openbsd.lisp
+++ b/unix/openbsd.lisp
@@ -25,10 +25,10 @@
 
 (define-resource-class openbsd-pkg (pkg)
   ()
-  ((probe-openbsd-pkg :properties (:versions :ensure :flavor))))
+  ((probe-openbsd-pkg :properties (:ensure :flavor :version))))
 
 (define-syntax pkg_info<1> (name version flavor)
-  #~|\s*([^-\s]+(?:-[^-0-9\s][^-\s]*)*)-([0-9][^-\s]*)(?:-([^-\s]+))|
+  #~|\s*([^-\s]+(?:-[^-0-9\s][^-\s]+)*)-([0-9][^-\s]*)(?:-([^-\s]+))?|
   "Syntax for pkg_info(1) on OpenBSD")
 
 (defgeneric probe-openbsd-pkg (resource os))