From 840afaf68357164107a2bcf45b922475e5527d38 Mon Sep 17 00:00:00 2001 From: Peter Palfrader Date: Wed, 28 Dec 2016 11:17:57 +0100 Subject: [PATCH] tor_ge_0.2.9 facter --- modules/debian-org/lib/facter/software.rb | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/modules/debian-org/lib/facter/software.rb b/modules/debian-org/lib/facter/software.rb index 3927cd626..ca55a8a65 100644 --- a/modules/debian-org/lib/facter/software.rb +++ b/modules/debian-org/lib/facter/software.rb @@ -155,3 +155,8 @@ Facter.add("systemd") do end end end +Facter.add("tor_ge_0.2.9") do + setcode do + system(%{dpkg --compare-versions $(dpkg-query -W -f='${Version}' tor) ge 0.2.9}) + end +end -- 2.20.1