[Pkg-puppet-devel] [SCM] Packaging of Facter for debian branch, upstream, updated. 3a39dd8353b6308cf49522990104cc63e55d7cda
James Turnbull
james at lovedthanlost.net
Fri Jan 29 17:22:17 UTC 2010
The following commit has been merged in the upstream branch:
commit 89a3aa8097c2e4690c835905dec49df2bc333b30
Author: James Turnbull <james at lovedthanlost.net>
Date: Tue Mar 17 23:45:50 2009 +1100
Fix to stdout in resolution.rb
diff --git a/lib/facter/util/resolution.rb b/lib/facter/util/resolution.rb
index 0dfb3b2..04d5e47 100644
--- a/lib/facter/util/resolution.rb
+++ b/lib/facter/util/resolution.rb
@@ -16,7 +16,7 @@ class Facter::Util::Resolution
if Config::CONFIG['host_os'] =~ /mswin/
@have_which = false
else
- %x{which which 2>/dev/null}
+ %x{which which >/dev/null 2>&1}
@have_which = ($? == 0)
end
end
@@ -33,7 +33,7 @@ class Facter::Util::Resolution
if binary !~ /^\//
path = %x{which #{binary} 2>/dev/null}.chomp
# we don't have the binary necessary
- return nil if path == ""
+ return nil if path == "" or path.match(/Command not found\./)
else
path = binary
end
--
Packaging of Facter for debian
More information about the Pkg-puppet-devel
mailing list