summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdam Jacob <adam@hjksolutions.com>2008-09-08 16:57:37 -0700
committerAdam Jacob <adam@hjksolutions.com>2008-09-08 16:57:37 -0700
commitdf601907c9bdbc856a5f28dc96df31bae8b7a5fb (patch)
treedda6624fcde7ec7d4ddcf46177614c9b7a7440fc
parent5c850d49d0b0f1928fad1cecfe9de1585ffa9fe6 (diff)
downloadchef-df601907c9bdbc856a5f28dc96df31bae8b7a5fb.tar.gz
Updating apt to mark the resource as updated
-rw-r--r--examples/config/cookbooks/fakefile/recipes/default.rb5
-rw-r--r--lib/chef/provider/apt.rb2
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