Permalink
Browse files

RedHat and Fedora share the same package names

  • Loading branch information...
1 parent 7b57b76 commit 8cb1197ba947f5fd4242d59c55d899a3c01fe6df @burtlo committed Jul 11, 2014
Showing with 2 additions and 11 deletions.
  1. +2 −11 libraries/module_info.rb
View
@@ -265,17 +265,7 @@ def package_name_for_module(name, httpd_version, platform, platform_family, plat
else
nil
end
-
- when 'rhel'
- if ModuleInfo.send("#{method_name}_core").include? name
- 'httpd'
- elsif ModuleInfo.send("#{method_name}_other").include? name
- "mod_#{name}"
- else
- nil
- end
-
- when 'fedora'
+ when /^(rhel|fedora)$/
if ModuleInfo.send("#{method_name}_core").include? name
'httpd'
elsif ModuleInfo.send("#{method_name}_other").include? name
@@ -284,6 +274,7 @@ def package_name_for_module(name, httpd_version, platform, platform_family, plat
nil
end
end
+
end
end
end

0 comments on commit 8cb1197

Please sign in to comment.