Commit c08003d3cbd94770f498a7192638ec5de0ab169b

Thomas de Grivel 2019-10-17T16:10:25

fix packages on openbsd

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
diff --git a/unix/openbsd.lisp b/unix/openbsd.lisp
index 5b98657..33d19b3 100644
--- a/unix/openbsd.lisp
+++ b/unix/openbsd.lisp
@@ -55,9 +55,10 @@
   (with-host host
     (let ((packages))
       (with-pkg_info<1> (name version flavor) (run "pkg_info")
-        (let ((pkg (resource 'openbsd-pkg name)))
-          (add-probed-properties pkg (properties* name version flavor))
-          (push pkg packages)))
+        (when (and name version)
+          (let ((pkg (resource 'openbsd-pkg name)))
+            (add-probed-properties pkg (properties* name version flavor))
+            (push pkg packages))))
       (list :packages (nreverse packages)))))
 
 #+nil