Merge pull request #4111 from MikeMcQuaid/missing-formula-improve-migration-messaging
missing_formula: improve migration messaging.
This commit is contained in:
commit
29f7d3d7ef
@ -93,7 +93,7 @@ module Homebrew
|
|||||||
new_tap = old_tap.tap_migrations[name]
|
new_tap = old_tap.tap_migrations[name]
|
||||||
next unless new_tap
|
next unless new_tap
|
||||||
|
|
||||||
new_tap_user, new_tap_repo, = new_tap.split("/")
|
new_tap_user, new_tap_repo, new_tap_new_name = new_tap.split("/")
|
||||||
new_tap_name = "#{new_tap_user}/#{new_tap_repo}"
|
new_tap_name = "#{new_tap_user}/#{new_tap_repo}"
|
||||||
|
|
||||||
message = <<~EOS
|
message = <<~EOS
|
||||||
@ -101,9 +101,18 @@ module Homebrew
|
|||||||
EOS
|
EOS
|
||||||
break if new_tap_name == CoreTap.instance.name
|
break if new_tap_name == CoreTap.instance.name
|
||||||
|
|
||||||
|
install_cmd = if new_tap_user == "caskroom"
|
||||||
|
"cask install"
|
||||||
|
else
|
||||||
|
"install"
|
||||||
|
end
|
||||||
|
new_tap_new_name ||= name
|
||||||
|
|
||||||
message += <<~EOS
|
message += <<~EOS
|
||||||
You can access it again by running:
|
You can access it again by running:
|
||||||
brew tap #{new_tap_name}
|
brew tap #{new_tap_name}
|
||||||
|
And then you can install it by running:
|
||||||
|
brew #{install_cmd} #{new_tap_new_name}
|
||||||
EOS
|
EOS
|
||||||
break
|
break
|
||||||
end
|
end
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user