From aa95c17c8ee45c1d12b0b33121d561723a738a7e Mon Sep 17 00:00:00 2001 From: Carlo Cabrera <30379873+carlocab@users.noreply.github.com> Date: Thu, 28 Oct 2021 17:05:17 +0800 Subject: [PATCH] keg_relocate: enable Java relocation for bottles This is a continuation of #12334. --- Library/Homebrew/keg_relocate.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Library/Homebrew/keg_relocate.rb b/Library/Homebrew/keg_relocate.rb index 11296480e2..a19eca11a2 100644 --- a/Library/Homebrew/keg_relocate.rb +++ b/Library/Homebrew/keg_relocate.rb @@ -98,8 +98,8 @@ class Keg relocation.add_replacement_pair(:perl, %r{\A#!(?:/usr/bin/perl\d\.\d+|#{HOMEBREW_PREFIX}/opt/perl/bin/perl)( |$)}o, "#!#{PERL_PLACEHOLDER}\\1") - # TODO: Enable relocation upon bottling when relocation upon pouring is in a brew release tag. - # relocation.add_replacement_pair(:java, JAVA_REGEX, JAVA_PLACEHOLDER) + relocation.add_replacement_pair(:java, JAVA_REGEX, JAVA_PLACEHOLDER) + relocation end alias generic_prepare_relocation_to_placeholders prepare_relocation_to_placeholders