We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 548c412 commit ccf87c3Copy full SHA for ccf87c3
lib/native-package-installer.rb
@@ -36,7 +36,14 @@ def initialize(spec)
36
end
37
38
def install
39
- @spec.each do |platform_id, system_packages|
+ spec = @spec.dup
40
+ if @platform.target?("fedora")
41
+ spec[:fedora] ||= spec[:rhel] || spec[:redhat]
42
+ elsif @platform.target?("amazon_linux_2023")
43
+ spec[:amazon_linux_2023] ||=
44
+ spec[:amazon_linux] || spec[:fedora] || spec[:rhel] || spec[:redhat]
45
+ end
46
+ spec.each do |platform_id, system_packages|
47
next unless @platform.target?(platform_id.to_s)
48
system_packages = [system_packages] unless system_packages.is_a?(Array)
49
requirement =
0 commit comments