Commit 1d5f3e319a8f8f3ec97276ed954b2afb8e9aa259

Thomas de Grivel 2018-07-03T11:23:20

compare os values

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
diff --git a/core/host.lisp b/core/host.lisp
index bc2efdf..c67238c 100644
--- a/core/host.lisp
+++ b/core/host.lisp
@@ -159,3 +159,10 @@
 
 (defmethod probe-host-user ((host host) (os os-unix))
   (list :user (first (run "whoami"))))
+
+(defmethod compare-property-values ((host host)
+                                    (property (eql :os))
+                                    (a os)
+                                    (b os))
+  (string= (prin1-to-string a)
+           (prin1-to-string b)))