projects
/
mirror
/
dsa-puppet.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5fd0bda
)
Send stderr from dpkg-query to /dev/null to avoid cron spam
author
Tollef Fog Heen
<tfheen@err.no>
Sat, 1 Jul 2017 13:18:48 +0000
(15:18 +0200)
committer
Tollef Fog Heen
<tfheen@err.no>
Sat, 1 Jul 2017 13:18:48 +0000
(15:18 +0200)
modules/debian_org/lib/facter/software.rb
patch
|
blob
|
history
diff --git
a/modules/debian_org/lib/facter/software.rb
b/modules/debian_org/lib/facter/software.rb
index
b3b3333
..
2f01831
100644
(file)
--- a/
modules/debian_org/lib/facter/software.rb
+++ b/
modules/debian_org/lib/facter/software.rb
@@
-154,6
+154,6
@@
Facter.add("systemd") do
end
Facter.add("tor_ge_0_2_9") do
setcode do
- system(%{test -n "$(dpkg-query -W -f='${Version}' tor)" && dpkg --compare-versions "$(dpkg-query -W -f='${Version}' tor)" ge 0.2.9})
+ system(%{test -n "$(dpkg-query -W -f='${Version}' tor
2>/dev/null
)" && dpkg --compare-versions "$(dpkg-query -W -f='${Version}' tor)" ge 0.2.9})
end
end