Merge pull request #12342 from carlocab/java-bottle-relocation

keg_relocate: enable Java relocation for bottles
This commit is contained in:
Carlo Cabrera 2021-10-31 16:06:42 +08:00 committed by GitHub
commit b14078a41d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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