diff --git a/cookbooks/travis_build_environment/recipes/git.rb b/cookbooks/travis_build_environment/recipes/git.rb index 90707a28f..ccc82bd3d 100644 --- a/cookbooks/travis_build_environment/recipes/git.rb +++ b/cookbooks/travis_build_environment/recipes/git.rb @@ -6,7 +6,16 @@ retry_delay 30 end -package %w[git git-core] do +case node['lsb']['codename'] +when 'trusty' + pkgs = %w[git git-core] +when 'xenial' + pkgs = %w[git git-core] +when 'bionic' + pkgs = %w[git] +end + +package pkgs do action %i[install upgrade] end