[Pkg-puppet-devel] [SCM] Puppet packaging for Debian branch, upstream, updated. puppet-0.24.5-rc3-1608-gd4319a5

Markus Roberts Markus at reality.com
Thu Jan 21 14:18:58 UTC 2010


The following commit has been merged in the upstream branch:
commit d4319a5418ce84ac83f9137cf1b7255210833eb4
Author: Markus Roberts <Markus at reality.com>
Date:   Tue Jan 19 15:14:37 2010 -0800

    Minimal fix for #3001 (failing to fetch metadata on dangling symlink)
    
    FileTest.exists? returns false if the target of a symlink is missing; in such
    cases we still want to continue if the resource is a symlink, as we may be
    managing a dangling symlink.  Continuing in such case either gives the desired
    behavior or a more specific/informative error message.

diff --git a/lib/puppet/file_serving/mount/file.rb b/lib/puppet/file_serving/mount/file.rb
index 4309ef7..197a720 100644
--- a/lib/puppet/file_serving/mount/file.rb
+++ b/lib/puppet/file_serving/mount/file.rb
@@ -25,7 +25,7 @@ class Puppet::FileServing::Mount::File < Puppet::FileServing::Mount
 
         file = ::File.join(full_path, relative_path)
 
-        if ! FileTest.exist?(file)
+        if !(FileTest.exist?(file) )# or FileTest.symlink?(file))
             Puppet.info("File does not exist or is not accessible: #{file}")
             return nil
         end

-- 
Puppet packaging for Debian



More information about the Pkg-puppet-devel mailing list