Permalink
Browse files

cook-222, include apt, then notify when sources update

  • Loading branch information...
1 parent bb81f24 commit a8427cfae45861afa8f29b4450fa975480c93b77 @jtimberman jtimberman committed Dec 9, 2009
Showing with 4 additions and 3 deletions.
  1. +1 −1 ubuntu/metadata.rb
  2. +3 −2 ubuntu/recipes/default.rb
View
@@ -2,6 +2,6 @@
maintainer_email "cookbooks@opscode.com"
license "Apache 2.0"
description "Sets up sources for ubuntu"
-version "0.7"
+version "0.8"
depends "apt"
supports "ubuntu"
@@ -17,10 +17,11 @@
# limitations under the License.
#
+include_recipe "apt"
+
template "/etc/apt/sources.list" do
mode 0644
variables :code_name => node[:lsb][:codename]
+ notifies :run, resources(:execute => "apt-get update"), :immediately
source "sources.list.erb"
end
-
-include_recipe "apt"

0 comments on commit a8427cf

Please sign in to comment.