summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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