Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Revert "Run `apt-get update` on apt_repository updates"

Fixed in apt cookbook v1.8.2.

This reverts commit 5792bbd.
  • Loading branch information...
commit 8830d0c66b01e3c00ee9518a7527bff820b27b58 1 parent 7e48755
@tmatilai tmatilai authored
Showing with 1 addition and 8 deletions.
  1. +1 −8 providers/repository.rb
View
9 providers/repository.rb
@@ -48,14 +48,7 @@ def repository_resource(exec_action)
action :nothing
end
r.run_action exec_action
- if r.updated_by_last_action?
- new_resource.updated_by_last_action(true)
- # Run `apt-get update` ourself as a workaround for apt cookbook bug
- # introduced by http://tickets.opscode.com/browse/COOK-2171
- execute "apt-get update" do
- action :run
- end
- end
+ new_resource.updated_by_last_action(true) if r.updated_by_last_action?
end
def preferences_resourse(exec_action)
Please sign in to comment.
Something went wrong with that request. Please try again.