Permalink
Browse files

Include apt recipe only after sources.list has been updated

Avoid extra `apt-get update` triggered by the apt::default recipe.
  • Loading branch information...
1 parent 5b12891 commit 21c01eccd89cce6cd2145ff169e848437f1f6f8e @tmatilai tmatilai committed Mar 20, 2013
Showing with 3 additions and 2 deletions.
  1. +1 −0 CHANGELOG.md
  2. +2 −2 recipes/default.rb
View
@@ -1,6 +1,7 @@
# 1.1.3 / _Not released yet_
- Use new backports URL from Wheezy on ([GH-5])
+- Include apt recipe only after sources.list has been updated
# 1.1.2 / 2013-02-06
View
@@ -24,15 +24,15 @@
return
end
-include_recipe "apt"
-
template "/etc/apt/sources.list" do
owner "root"
group "root"
mode 00644
notifies :run, "execute[apt-get update]", :immediately
end
+include_recipe "apt"
+
%w[backports security stable_proposed_updates stable_updates testing unstable].each do |repo|
include_recipe "debian::#{repo}" if node['debian'][repo]
end

0 comments on commit 21c01ec

Please sign in to comment.