summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/puppet/type.rb4
-rwxr-xr-xlib/puppet/type/exec.rb7
-rwxr-xr-xlib/puppet/type/pfile/mode.rb2
3 files changed, 10 insertions, 3 deletions
diff --git a/lib/puppet/type.rb b/lib/puppet/type.rb
index 717c566eb..748a69906 100644
--- a/lib/puppet/type.rb
+++ b/lib/puppet/type.rb
@@ -1383,7 +1383,9 @@ class Type < Puppet::Element
obj = dep
else
# Skip autorequires that we aren't managing
- next unless obj = typeobj[dep]
+ unless obj = typeobj[dep]
+ next
+ end
end
# Skip autorequires that we already require
diff --git a/lib/puppet/type/exec.rb b/lib/puppet/type/exec.rb
index 0fec635c8..b12bf159d 100755
--- a/lib/puppet/type/exec.rb
+++ b/lib/puppet/type/exec.rb
@@ -392,7 +392,12 @@ module Puppet
reqs << self[:cwd]
end
- [:command, :onlyif, :unless].each { |param|
+ self[:command].scan(/^(#{File::SEPARATOR}\S+)/) { |str|
+ self.warning "adding %s" % str
+ reqs << str
+ }
+
+ [:onlyif, :unless].each { |param|
next unless tmp = self[param]
# And search the command line for files, adding any we find. This
diff --git a/lib/puppet/type/pfile/mode.rb b/lib/puppet/type/pfile/mode.rb
index 455d52ce1..3d593caef 100755
--- a/lib/puppet/type/pfile/mode.rb
+++ b/lib/puppet/type/pfile/mode.rb
@@ -93,7 +93,7 @@ module Puppet
if @is == :absent
@parent.stat(true)
self.retrieve
- #self.debug "%s: after refresh, is '%s'" % [self.class.name,@is]
+ self.debug "%s: after refresh, is '%o'" % [self.class.name,@is]
if @is == :absent
self.info "File does not exist; cannot set mode" %
@parent.name