From 514059da4b8d4c72381c3c0183227d31daebb541 Mon Sep 17 00:00:00 2001 From: Michael Cho Date: Thu, 11 Apr 2024 10:24:45 -0400 Subject: [PATCH] keg: mkpath on main `postgresql@X` directories Fix logic in #16966 as it only matched subdirectories Signed-off-by: Michael Cho --- Library/Homebrew/keg.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Library/Homebrew/keg.rb b/Library/Homebrew/keg.rb index b7f4381c01b90..4d47a3ba445af 100644 --- a/Library/Homebrew/keg.rb +++ b/Library/Homebrew/keg.rb @@ -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 @@ -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 @@ -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/