Deprecate Homebrew/versions, Homebrew/devel-only.

Don't use Homebrew/versions in a test and remove them both from the
OFFICIAL_TAPS list (i.e. `brew search`).
This commit is contained in:
Mike McQuaid 2017-01-03 17:50:09 +00:00
parent 2eed2ba434
commit cd1579a51a
2 changed files with 7 additions and 9 deletions

View File

@ -1,7 +1,6 @@
OFFICIAL_TAPS = %w[ OFFICIAL_TAPS = %w[
apache apache
completions completions
devel-only
dupes dupes
emacs emacs
fuse fuse
@ -12,7 +11,6 @@ OFFICIAL_TAPS = %w[
python python
science science
tex tex
versions
x11 x11
].freeze ].freeze

View File

@ -16,7 +16,7 @@ class IntegrationCommandTestTap < IntegrationCommandTestCase
end end
assert_match "homebrew/foo", cmd("tap") assert_match "homebrew/foo", cmd("tap")
assert_match "homebrew/versions", cmd("tap", "--list-official") assert_match "homebrew/science", cmd("tap", "--list-official")
assert_match "2 taps", cmd("tap-info") assert_match "2 taps", cmd("tap-info")
assert_match "https://github.com/Homebrew/homebrew-foo", cmd("tap-info", "homebrew/foo") assert_match "https://github.com/Homebrew/homebrew-foo", cmd("tap-info", "homebrew/foo")
assert_match "https://github.com/Homebrew/homebrew-foo", cmd("tap-info", "--json=v1", "--installed") assert_match "https://github.com/Homebrew/homebrew-foo", cmd("tap-info", "--json=v1", "--installed")
@ -162,17 +162,17 @@ class TapTest < Homebrew::TestCase
assert_raises(TapUnavailableError) { Tap.new("Homebrew", "bar").remote } assert_raises(TapUnavailableError) { Tap.new("Homebrew", "bar").remote }
refute_predicate @tap, :custom_remote? refute_predicate @tap, :custom_remote?
version_tap = Tap.new("Homebrew", "versions") services_tap = Tap.new("Homebrew", "services")
version_tap.path.mkpath services_tap.path.mkpath
version_tap.path.cd do services_tap.path.cd do
shutup do shutup do
system "git", "init" system "git", "init"
system "git", "remote", "add", "origin", "https://github.com/Homebrew/homebrew-versions" system "git", "remote", "add", "origin", "https://github.com/Homebrew/homebrew-services"
end end
end end
refute_predicate version_tap, :private? refute_predicate services_tap, :private?
ensure ensure
version_tap.path.rmtree if version_tap services_tap.path.rmtree if services_tap
end end
def test_remote_not_git_repo def test_remote_not_git_repo