diff options
Diffstat (limited to 'lib/puppet/client.rb')
-rw-r--r-- | lib/puppet/client.rb | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/lib/puppet/client.rb b/lib/puppet/client.rb index 80b9fe30f..56e78349a 100644 --- a/lib/puppet/client.rb +++ b/lib/puppet/client.rb @@ -20,7 +20,6 @@ begin require 'xmlrpc/server' rescue LoadError => detail $noclientnetworking = detail - raise Puppet::Error, "You must have the Ruby XMLRPC, CGI, and Webrick libraries installed" end module Puppet @@ -414,17 +413,9 @@ module Puppet if tmp = @driver.getfile(sum) newcontents = Base64.decode64(tmp) newsum = Digest::MD5.hexdigest(newcontents) - changed = nil - unless FileTest.writable?(file) - changed = File.stat(file).mode - File.chmod(changed | 0200, file) - end File.open(file,File::WRONLY|File::TRUNC) { |of| of.print(newcontents) } - if changed - File.chmod(changed, file) - end else Puppet.err "Could not find file with checksum %s" % sum return nil |