Skip to content

Commit

Permalink
fix alternative platform package name transformations
Browse files Browse the repository at this point in the history
  • Loading branch information
mcorino committed Feb 21, 2024
1 parent d85c84c commit bc5a7e8
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions rakelib/lib/config/pkgman/linux.rb
Original file line number Diff line number Diff line change
Expand Up @@ -90,14 +90,15 @@ def pkgman
end

def platform_pkgs
pkgs = PLATFORM_DEPS[WXRuby3.config.sysinfo.os.variant.to_sym] || []
(PLATFORM_ALTS[WXRuby3.config.sysinfo.os.variant.to_sym] || {}).each_pair do |org, alt|
pkgs << alt if pkgs.delete(org)
end
pkgs
PLATFORM_DEPS[WXRuby3.config.sysinfo.os.variant.to_sym] || []
end

def add_platform_pkgs(pkgs)
# transform any platform specific package alternatives
(PLATFORM_ALTS[WXRuby3.config.sysinfo.os.variant.to_sym] || {}).each_pair do |org, alt|
pkgs << alt if pkgs.delete(org)
end
# add any other platform specific package dependencies
pkgs.concat(pkgman.select_uninstalled(platform_pkgs))
end

Expand Down

0 comments on commit bc5a7e8

Please sign in to comment.