Skip to content

Commit

Permalink
Merge pull request #65 from majormoses/feature/pin-packages
Browse files Browse the repository at this point in the history
if package version is specified pin version on debian when using esl
  • Loading branch information
tas50 authored Aug 30, 2018
2 parents 2289d25 + 700eb02 commit 2212b6b
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
1 change: 1 addition & 0 deletions .foodcritic
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
~FC005
~FC121
8 changes: 8 additions & 0 deletions recipes/esl.rb
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,14 @@
action :add
end

apt_preference 'erlang_solutions_repo' do
package_name 'esl-erlang'
pin "version #{node['erlang']['esl']['version']}"
pin_priority 700
action :add
not_if { node['erlang']['esl']['version'].nil? }
end

package 'esl-erlang' do
version node['erlang']['esl']['version'] if node['erlang']['esl']['version']
end
Expand Down

0 comments on commit 2212b6b

Please sign in to comment.