[Pkg-puppet-devel] [SCM] Packaging of Facter for debian branch, upstream, updated. 51bcebe38cab6088c901f1006339bbe40a36d161
James Turnbull
james at lovedthanlost.net
Wed Aug 18 05:55:45 UTC 2010
The following commit has been merged in the upstream branch:
commit 802e6c24a0968deb0b45402d73c850f045b70c46
Author: James Turnbull <james at lovedthanlost.net>
Date: Sat Apr 24 15:46:45 2010 +1000
Fixed #3542 - Ruby 1.9: broken unittest, String#each no longer exists
Thanks to Jos Backus for the fix.
diff --git a/lib/facter.rb b/lib/facter.rb
index ac06f68..46e2e99 100644
--- a/lib/facter.rb
+++ b/lib/facter.rb
@@ -180,6 +180,7 @@ module Facter
def self.warn(msg)
if Facter.debugging? and msg and not msg.empty?
+ msg = [msg] unless msg.respond_to? :each
msg.each { |line| Kernel.warn line }
end
end
--
Packaging of Facter for debian
More information about the Pkg-puppet-devel
mailing list