Skip to content

Commit

Permalink
keg: mkpath on main postgresql@X directories
Browse files Browse the repository at this point in the history
Fix logic in Homebrew#16966 as it only matched subdirectories

Signed-off-by: Michael Cho <[email protected]>
  • Loading branch information
cho-m committed Apr 11, 2024
1 parent 8083e2d commit 514059d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Library/Homebrew/keg.rb
Expand Up @@ -427,7 +427,7 @@ def link(verbose: false, dry_run: false, overwrite: false)
link_dir("sbin", verbose:, dry_run:, overwrite:) { :skip_dir }
link_dir("include", verbose:, dry_run:, overwrite:) do |relative_path|
case relative_path.to_s
when %r{^postgresql@\d+/}
when /^postgresql@\d+/
:mkpath
else
:link
Expand All @@ -446,7 +446,7 @@ def link(verbose: false, dry_run: false, overwrite: false)
/^fish/,
%r{^lua/}, # Lua, Lua51, Lua53 all need the same handling.
%r{^guile/},
%r{^postgresql@\d+/},
/^postgresql@\d+/,
*SHARE_PATHS
:mkpath
else
Expand All @@ -470,7 +470,7 @@ def link(verbose: false, dry_run: false, overwrite: false)
/^ocaml/,
/^perl5/,
"php",
%r{^postgresql@\d+/},
/^postgresql@\d+/,
/^python[23]\.\d+/,
/^R/,
/^ruby/
Expand Down

0 comments on commit 514059d

Please sign in to comment.