Comment needed changes if HOMEBREW_LIBRARY changes
This commit is contained in:
parent
58fe675d97
commit
c56681a227
@ -7,6 +7,8 @@ require "utils/shell"
|
|||||||
#
|
#
|
||||||
# @api private
|
# @api private
|
||||||
module FormulaCellarChecks
|
module FormulaCellarChecks
|
||||||
|
# If the location of HOMEBREW_LIBRARY changes
|
||||||
|
# keg_relocate.rb, test/global_spec.rb, and this constant need to change.
|
||||||
REPOSITORY_AND_NOT_LIBRARY_REGEX = %r{#{HOMEBREW_REPOSITORY}(?!/Library/)}.freeze
|
REPOSITORY_AND_NOT_LIBRARY_REGEX = %r{#{HOMEBREW_REPOSITORY}(?!/Library/)}.freeze
|
||||||
|
|
||||||
def check_env_path(bin)
|
def check_env_path(bin)
|
||||||
|
@ -5,6 +5,9 @@ class Keg
|
|||||||
PREFIX_PLACEHOLDER = "@@HOMEBREW_PREFIX@@"
|
PREFIX_PLACEHOLDER = "@@HOMEBREW_PREFIX@@"
|
||||||
CELLAR_PLACEHOLDER = "@@HOMEBREW_CELLAR@@"
|
CELLAR_PLACEHOLDER = "@@HOMEBREW_CELLAR@@"
|
||||||
REPOSITORY_PLACEHOLDER = "@@HOMEBREW_REPOSITORY@@"
|
REPOSITORY_PLACEHOLDER = "@@HOMEBREW_REPOSITORY@@"
|
||||||
|
|
||||||
|
# If the location of HOMEBREW_LIBRARY changes
|
||||||
|
# formula_cellar_checks.rb, test/global_spec.rb, and this constant need to change.
|
||||||
LIBRARY_PLACEHOLDER = "@@HOMEBREW_REPOSITORY@@/Library"
|
LIBRARY_PLACEHOLDER = "@@HOMEBREW_REPOSITORY@@/Library"
|
||||||
|
|
||||||
Relocation = Struct.new(:old_prefix, :old_cellar, :old_repository, :old_library,
|
Relocation = Struct.new(:old_prefix, :old_cellar, :old_repository, :old_library,
|
||||||
|
@ -9,6 +9,8 @@ describe "brew", :integration_test do
|
|||||||
.and be_a_success
|
.and be_a_success
|
||||||
end
|
end
|
||||||
|
|
||||||
|
# If the location of HOMEBREW_LIBRARY changes
|
||||||
|
# keg_relocate.rb, formula_cellar_checks.rb, and this test need to change.
|
||||||
it "ensures that HOMEBREW_LIBRARY=HOMEBREW_REPOSITORY/Library" do
|
it "ensures that HOMEBREW_LIBRARY=HOMEBREW_REPOSITORY/Library" do
|
||||||
expect(HOMEBREW_LIBRARY.to_s).to eq("#{HOMEBREW_REPOSITORY}/Library")
|
expect(HOMEBREW_LIBRARY.to_s).to eq("#{HOMEBREW_REPOSITORY}/Library")
|
||||||
end
|
end
|
||||||
|
2
bin/brew
2
bin/brew
@ -58,6 +58,8 @@ then
|
|||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
# If the location of HOMEBREW_LIBRARY changes
|
||||||
|
# keg_relocate.rb, formula_cellar_checks.rb, and test/global_spec.rb need to change.
|
||||||
HOMEBREW_LIBRARY="$HOMEBREW_REPOSITORY/Library"
|
HOMEBREW_LIBRARY="$HOMEBREW_REPOSITORY/Library"
|
||||||
|
|
||||||
# Copy and export all HOMEBREW_* variables previously mentioned in
|
# Copy and export all HOMEBREW_* variables previously mentioned in
|
||||||
|
Loading…
x
Reference in New Issue
Block a user