Skip to content

Commit

Permalink
Fix copy-n-paste mistake leading to CI failures
Browse files Browse the repository at this point in the history
  • Loading branch information
larskanis committed Dec 15, 2022
1 parent 595b888 commit d7bcb82
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions lib/ruby_installer/build/msys2_installation.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ module RubyInstaller
module Build # Use for: Build, Runtime
# :nodoc:
class Msys2Installation
RUBY_INSTALL_KEY = "SOFTWARE/Microsoft/Windows/CurrentVersion/Uninstall/"
RUBY_INSTALL_KEY_WOW = "SOFTWARE/WOW6432Node/Microsoft/Windows/CurrentVersion/Uninstall/"
MSYS2_INSTALL_KEY = "SOFTWARE/Microsoft/Windows/CurrentVersion/Uninstall/"
MSYS2_INSTALL_KEY_WOW = "SOFTWARE/WOW6432Node/Microsoft/Windows/CurrentVersion/Uninstall/"

class MsysNotFound < RuntimeError
end
Expand Down Expand Up @@ -61,10 +61,10 @@ def iterate_msys_paths
# If msys2 is installed per installer.exe
require "win32/registry"
[
[Win32::Registry::HKEY_CURRENT_USER, RUBY_INSTALL_KEY],
[Win32::Registry::HKEY_CURRENT_USER, RUBY_INSTALL_KEY_WOW],
[Win32::Registry::HKEY_LOCAL_MACHINE, RUBY_INSTALL_KEY],
[Win32::Registry::HKEY_LOCAL_MACHINE, RUBY_INSTALL_KEY_WOW],
[Win32::Registry::HKEY_CURRENT_USER, MSYS2_INSTALL_KEY],
[Win32::Registry::HKEY_CURRENT_USER, MSYS2_INSTALL_KEY_WOW],
[Win32::Registry::HKEY_LOCAL_MACHINE, MSYS2_INSTALL_KEY],
[Win32::Registry::HKEY_LOCAL_MACHINE, MSYS2_INSTALL_KEY_WOW],
].each do |reg_root, base_key|
begin
reg_root.open(backslachs(base_key)) do |reg|
Expand Down

0 comments on commit d7bcb82

Please sign in to comment.