Skip to content
This repository has been archived by the owner on Nov 29, 2017. It is now read-only.

Commit

Permalink
Simplify the logic in the package recipe
Browse files Browse the repository at this point in the history
Signed-off-by: Tim Smith <tsmith@chef.io>
  • Loading branch information
tas50 committed Jan 18, 2017
1 parent d977847 commit eb98896
Showing 1 changed file with 2 additions and 9 deletions.
11 changes: 2 additions & 9 deletions recipes/package.rb
Original file line number Diff line number Diff line change
Expand Up @@ -26,16 +26,9 @@
package 'libgecode-dev'

when 'rhel', 'fedora'
raise 'This recipe does not yet support installing Gecode 3.5.0+ from packages on your platform release' if node['platform_version'].to_f < 6.0

if platform?('redhat') || platform?('centos') || platform?('scientific')
if node['platform_version'].to_f < 6.0
raise 'This recipe does not yet support installing Gecode 3.5.0+ from packages on your platform'
else
include_recipe 'yum-epel'
end
elsif platform?('fedora') && (node['platform_version'].to_f < 16.0)
raise 'This recipe does not yet support installing Gecode 3.5.0+ from packages on your platform'
end
include_recipe 'yum-epel' unless platform?('fedora')

package 'gecode-devel'

Expand Down

0 comments on commit eb98896

Please sign in to comment.