[Pkg-puppet-devel] [SCM] Puppet packaging for Debian branch, upstream, updated. 0.25.5-639-g8f94f35

test branch puppet-dev at googlegroups.com
Wed Jul 14 10:32:14 UTC 2010


The following commit has been merged in the upstream branch:
commit 40c1fb06162f2eebe6cd5e40a0e289cd568ec8e1
Author: Markus Roberts <Markus at reality.com>
Date:   Sun Mar 21 21:14:12 2010 -0700

    Resolving conflicts with ???
    
    When checksum is a parameter corresponding to checksum_type in the filesets
    rather than a checksum "strategy" the value :none should generally be computed
    rather than provided.  If neither a source nor contents are provided, there is
    no need for a checksum and thus it should be :none; otherwise, use the provided
    value (or, if it's nil, let it pass through and be replaced by the default
    (:md5) in the bowels of the beast).

diff --git a/lib/puppet/type/file.rb b/lib/puppet/type/file.rb
index efac1c8..8a21aa3 100644
--- a/lib/puppet/type/file.rb
+++ b/lib/puppet/type/file.rb
@@ -601,14 +601,14 @@ Puppet::Type.newtype(:file) do
     end
 
     def perform_recursion(path)
-        params = {
+        Puppet::FileServing::Metadata.search(
+            path,
             :links => self[:links],
             :recurse => (self[:recurse] == :remote ? true : self[:recurse]),
             :recurselimit => self[:recurselimit],
-            :ignore => self[:ignore]
-        }
-        params[:checksum_type] = self[:checksum] if self[:checksum] == :none
-        Puppet::FileServing::Metadata.search(path, params)
+            :ignore => self[:ignore],
+            :checksum_type => (self[:source] || self[:content]) ? self[:checksum] : :none
+        )
     end
 
     # Remove any existing data.  This is only used when dealing with

-- 
Puppet packaging for Debian



More information about the Pkg-puppet-devel mailing list