From: Peter Palfrader Date: Wed, 28 Dec 2016 10:17:57 +0000 (+0100) Subject: tor_ge_0.2.9 facter X-Git-Url: https://git.adam-barratt.org.uk/?a=commitdiff_plain;h=840afaf68357164107a2bcf45b922475e5527d38;p=mirror%2Fdsa-puppet.git tor_ge_0.2.9 facter --- 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