diff options
author | Adam Jacob <adam@hjksolutions.com> | 2008-09-08 16:57:37 -0700 |
---|---|---|
committer | Adam Jacob <adam@hjksolutions.com> | 2008-09-08 16:57:37 -0700 |
commit | df601907c9bdbc856a5f28dc96df31bae8b7a5fb (patch) | |
tree | dda6624fcde7ec7d4ddcf46177614c9b7a7440fc | |
parent | 5c850d49d0b0f1928fad1cecfe9de1585ffa9fe6 (diff) | |
download | chef-df601907c9bdbc856a5f28dc96df31bae8b7a5fb.tar.gz |
Updating apt to mark the resource as updated
-rw-r--r-- | examples/config/cookbooks/fakefile/recipes/default.rb | 5 | ||||
-rw-r--r-- | lib/chef/provider/apt.rb | 2 |
2 files changed, 7 insertions, 0 deletions
diff --git a/examples/config/cookbooks/fakefile/recipes/default.rb b/examples/config/cookbooks/fakefile/recipes/default.rb index 72c1eb6f3d..01b56debfd 100644 --- a/examples/config/cookbooks/fakefile/recipes/default.rb +++ b/examples/config/cookbooks/fakefile/recipes/default.rb @@ -21,6 +21,11 @@ print "Woot!\n"; } end +package "emacs" do + version '22.1-0ubuntu10' + action :install +end + file "/tmp/foo" do owner "adam" mode 0644 diff --git a/lib/chef/provider/apt.rb b/lib/chef/provider/apt.rb index caa3b20cf1..e66a8c0243 100644 --- a/lib/chef/provider/apt.rb +++ b/lib/chef/provider/apt.rb @@ -99,6 +99,8 @@ class Chef "DEBIAN_FRONTEND" => "noninteractive" } ) + @new_resource.updated = true + Chef::Log.info("Removed #{@new_resource} successfully") end end |