X-Git-Url: https://git.adam-barratt.org.uk/?a=blobdiff_plain;f=modules%2Fdebian-org%2Flib%2Ffacter%2Fsoftware.rb;h=0045a9ef0222781b86c79b8a993d354adea9611d;hb=ff762dfdfbfdb5f5eead0b998c01a6e8feeeac67;hp=ab33e629cf11fe4cb430a18ae19fd869931afd22;hpb=09b3495cc8ee5283e041a4b9f489b0ab742845fe;p=mirror%2Fdsa-puppet.git diff --git a/modules/debian-org/lib/facter/software.rb b/modules/debian-org/lib/facter/software.rb index ab33e629c..0045a9ef0 100644 --- a/modules/debian-org/lib/facter/software.rb +++ b/modules/debian-org/lib/facter/software.rb @@ -155,8 +155,8 @@ Facter.add("systemd") do end end end -Facter.add("tor_ge_0.2.9") do +Facter.add("tor_ge_0_2_9") do setcode do - system(%{dpkg -l tor 2>/dev/null && dpkg --compare-versions $(dpkg-query -W -f='${Version}' tor) ge 0.2.9}) + system(%{dpkg -l tor >/dev/null 2>&1 && dpkg --compare-versions $(dpkg-query -W -f='${Version}' tor) ge 0.2.9}) end end