Update Homebrew/homebrew references in code
Replace `homebrew` with `brew`, `homebrew-core`, or `legacy-homebrew` depending on context.
This commit is contained in:
parent
8600b9edf1
commit
02289fce42
@ -920,9 +920,9 @@ class FormulaAuditor
|
|||||||
|
|
||||||
if formula.tap.tap_migrations.key?(formula.name)
|
if formula.tap.tap_migrations.key?(formula.name)
|
||||||
problem <<-EOS.undent
|
problem <<-EOS.undent
|
||||||
#{formula.name} seems to be listed in tap_migrations.json!
|
#{formula.name} seems to be listed in tap_migrations.json!
|
||||||
Please remove #{formula.name} from present tap & tap_migrations.json
|
Please remove #{formula.name} from present tap & tap_migrations.json
|
||||||
before submitting it to Homebrew/homebrew.
|
before submitting it to Homebrew/homebrew-#{formula.tap.repo}.
|
||||||
EOS
|
EOS
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|||||||
@ -43,7 +43,7 @@ module Homebrew
|
|||||||
if arg.to_i > 0
|
if arg.to_i > 0
|
||||||
issue = arg
|
issue = arg
|
||||||
if ARGV.include? "--legacy"
|
if ARGV.include? "--legacy"
|
||||||
url = "https://github.com/Homebrew/homebrew/pull/#{arg}"
|
url = "https://github.com/Homebrew/legacy-homebrew/pull/#{arg}"
|
||||||
else
|
else
|
||||||
url = "https://github.com/Homebrew/homebrew-core/pull/#{arg}"
|
url = "https://github.com/Homebrew/homebrew-core/pull/#{arg}"
|
||||||
end
|
end
|
||||||
@ -146,7 +146,7 @@ module Homebrew
|
|||||||
if issue && !ARGV.include?("--clean")
|
if issue && !ARGV.include?("--clean")
|
||||||
ohai "Patch closes issue ##{issue}"
|
ohai "Patch closes issue ##{issue}"
|
||||||
if ARGV.include?("--legacy")
|
if ARGV.include?("--legacy")
|
||||||
close_message = "Closes Homebrew/homebrew##{issue}."
|
close_message = "Closes Homebrew/legacy-homebrew##{issue}."
|
||||||
else
|
else
|
||||||
close_message = "Closes ##{issue}."
|
close_message = "Closes ##{issue}."
|
||||||
end
|
end
|
||||||
|
|||||||
@ -809,7 +809,7 @@ module Homebrew
|
|||||||
|
|
||||||
if pr
|
if pr
|
||||||
if ARGV.include?("--legacy")
|
if ARGV.include?("--legacy")
|
||||||
pull_pr = "https://github.com/Homebrew/homebrew/pull/#{pr}"
|
pull_pr = "https://github.com/Homebrew/legacy-homebrew/pull/#{pr}"
|
||||||
safe_system "brew", "pull", "--clean", "--legacy", pull_pr
|
safe_system "brew", "pull", "--clean", "--legacy", pull_pr
|
||||||
else
|
else
|
||||||
pull_pr = "https://github.com/#{tap.user}/homebrew-#{tap.repo}/pull/#{pr}"
|
pull_pr = "https://github.com/#{tap.user}/homebrew-#{tap.repo}/pull/#{pr}"
|
||||||
|
|||||||
@ -305,9 +305,9 @@ module OS
|
|||||||
rescue IndexError
|
rescue IndexError
|
||||||
onoe <<-EOS.undent
|
onoe <<-EOS.undent
|
||||||
Homebrew doesn't know what compiler versions ship with your version
|
Homebrew doesn't know what compiler versions ship with your version
|
||||||
of Xcode (#{Xcode.version}). Please `brew update` and if that doesn't help, file
|
of Xcode (#{Xcode.version}). Please `brew update` and if that doesn't
|
||||||
an issue with the output of `brew --config`:
|
help, file an issue with the output of `brew --config`:
|
||||||
https://github.com/Homebrew/homebrew/issues
|
https://github.com/Homebrew/brew/issues
|
||||||
|
|
||||||
Note that we only track stable, released versions of Xcode.
|
Note that we only track stable, released versions of Xcode.
|
||||||
|
|
||||||
|
|||||||
@ -47,7 +47,7 @@ class FormularyFactoryTest < Homebrew::TestCase
|
|||||||
end
|
end
|
||||||
|
|
||||||
def test_factory_with_fully_qualified_name
|
def test_factory_with_fully_qualified_name
|
||||||
assert_kind_of Formula, Formulary.factory("homebrew/homebrew/#{@name}")
|
assert_kind_of Formula, Formulary.factory("homebrew/core/#{@name}")
|
||||||
end
|
end
|
||||||
|
|
||||||
def test_formula_unavailable_error
|
def test_formula_unavailable_error
|
||||||
|
|||||||
@ -209,7 +209,7 @@ class IntegrationCommandTests < Homebrew::TestCase
|
|||||||
alias_file.parent.mkpath
|
alias_file.parent.mkpath
|
||||||
FileUtils.ln_s formula_file, alias_file
|
FileUtils.ln_s formula_file, alias_file
|
||||||
cmd("readall", "--aliases", "--syntax")
|
cmd("readall", "--aliases", "--syntax")
|
||||||
cmd("readall", "Homebrew/homebrew")
|
cmd("readall", "homebrew/core")
|
||||||
ensure
|
ensure
|
||||||
formula_file.unlink unless formula_file.nil?
|
formula_file.unlink unless formula_file.nil?
|
||||||
repo.alias_dir.rmtree
|
repo.alias_dir.rmtree
|
||||||
|
|||||||
@ -30,7 +30,7 @@ class MigratorErrorsTests < Homebrew::TestCase
|
|||||||
keg.mkpath
|
keg.mkpath
|
||||||
tab = Tab.empty
|
tab = Tab.empty
|
||||||
tab.tabfile = HOMEBREW_CELLAR/"oldname/0.1/INSTALL_RECEIPT.json"
|
tab.tabfile = HOMEBREW_CELLAR/"oldname/0.1/INSTALL_RECEIPT.json"
|
||||||
tab.source["tap"] = "Homebrew/homebrew"
|
tab.source["tap"] = "homebrew/core"
|
||||||
tab.write
|
tab.write
|
||||||
assert_raises(Migrator::MigratorDifferentTapsError) { Migrator.new(@new_f) }
|
assert_raises(Migrator::MigratorDifferentTapsError) { Migrator.new(@new_f) }
|
||||||
ensure
|
ensure
|
||||||
|
|||||||
@ -29,7 +29,7 @@ class SoftwareSpecTests < Homebrew::TestCase
|
|||||||
end
|
end
|
||||||
|
|
||||||
def tap
|
def tap
|
||||||
"Homebrew/homebrew"
|
"homebrew/core"
|
||||||
end
|
end
|
||||||
end.new
|
end.new
|
||||||
assert_raises(ResourceMissingError) { @spec.resource("foo") }
|
assert_raises(ResourceMissingError) { @spec.resource("foo") }
|
||||||
@ -38,7 +38,7 @@ class SoftwareSpecTests < Homebrew::TestCase
|
|||||||
def test_set_owner
|
def test_set_owner
|
||||||
owner = stub :name => "some_name",
|
owner = stub :name => "some_name",
|
||||||
:full_name => "some_name",
|
:full_name => "some_name",
|
||||||
:tap => "Homebrew/homebrew"
|
:tap => "homebrew/core"
|
||||||
@spec.owner = owner
|
@spec.owner = owner
|
||||||
assert_equal owner, @spec.owner
|
assert_equal owner, @spec.owner
|
||||||
end
|
end
|
||||||
@ -47,7 +47,7 @@ class SoftwareSpecTests < Homebrew::TestCase
|
|||||||
@spec.resource("foo") { url "foo-1.0" }
|
@spec.resource("foo") { url "foo-1.0" }
|
||||||
@spec.owner = stub :name => "some_name",
|
@spec.owner = stub :name => "some_name",
|
||||||
:full_name => "some_name",
|
:full_name => "some_name",
|
||||||
:tap => "Homebrew/homebrew"
|
:tap => "homebrew/core"
|
||||||
assert_equal "some_name", @spec.name
|
assert_equal "some_name", @spec.name
|
||||||
@spec.resources.each_value { |r| assert_equal @spec, r.owner }
|
@spec.resources.each_value { |r| assert_equal @spec, r.owner }
|
||||||
end
|
end
|
||||||
@ -57,7 +57,7 @@ class SoftwareSpecTests < Homebrew::TestCase
|
|||||||
@spec.resource("bar") { url "bar" }
|
@spec.resource("bar") { url "bar" }
|
||||||
@spec.owner = stub :name => "some_name",
|
@spec.owner = stub :name => "some_name",
|
||||||
:full_name => "some_name",
|
:full_name => "some_name",
|
||||||
:tap => "Homebrew/homebrew"
|
:tap => "homebrew/core"
|
||||||
assert_version_equal "42", @spec.resource("bar").version
|
assert_version_equal "42", @spec.resource("bar").version
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user