Permalink
Browse files

Only install packages after updating

  • Loading branch information...
1 parent 93665c9 commit 5ab8dab8bbdf0ce78188c22f6a987f5c6994c8b6 @michaelklishin michaelklishin committed Oct 3, 2012
Showing with 7 additions and 6 deletions.
  1. +7 −6 ci_environment/apt/recipes/default.rb
@@ -17,6 +17,13 @@
# limitations under the License.
#
+execute "apt-get update" do
+ action :run
+end
+execute "apt-get -y clean autoremove" do
+ action :nothing
+end
+
# for recipes that require preseeding, e.g. java::oraclejdk7, to work. MK.
package "debconf-utils" do
action :install
@@ -27,12 +34,6 @@
action :install
end
-execute "apt-get update" do
- action :run
-end
-execute "apt-get -y autoclean autoremove" do
- action :nothing
-end
template "/etc/apt/sources.list" do
source "sources.list.erb"

0 comments on commit 5ab8dab

Please sign in to comment.