aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Library/Homebrew/migrator.rb8
-rw-r--r--docs/Acceptable-Formulae.md9
2 files changed, 7 insertions, 10 deletions
diff --git a/Library/Homebrew/migrator.rb b/Library/Homebrew/migrator.rb
index 8664d474b..7287a3c88 100644
--- a/Library/Homebrew/migrator.rb
+++ b/Library/Homebrew/migrator.rb
@@ -193,6 +193,11 @@ class Migrator
link_oldname_opt
link_newname unless old_linked_keg.nil?
update_tabs
+ return unless formula.outdated?
+ opoo <<~EOS
+ #{Formatter.identifier(newname)} is outdated! Please run as soon as possible:
+ brew upgrade #{newname}
+ EOS
rescue Interrupt
ignore_interrupts { backup_oldname }
rescue Exception => e # rubocop:disable Lint/RescueException
@@ -288,7 +293,8 @@ class Migrator
new_keg.remove_linked_keg_record if new_keg.linked?
begin
- new_keg.link
+ mode = OpenStruct.new(overwrite: true)
+ new_keg.link(mode)
rescue Keg::ConflictError => e
onoe "Error while executing `brew link` step on #{newname}"
puts e
diff --git a/docs/Acceptable-Formulae.md b/docs/Acceptable-Formulae.md
index df799bb1a..5f6e6fcc6 100644
--- a/docs/Acceptable-Formulae.md
+++ b/docs/Acceptable-Formulae.md
@@ -38,15 +38,6 @@ tarballs should include the version in the filename whenever possible.
We don’t accept software without a tagged version because they regularly break
due to upstream changes and we can’t provide [bottles](Bottles.md) for them.
-### Bindings
-First check that there is not already a binding available via
-[`gem`](https://rubygems.org/) or [`pip`](http://www.pip-installer.org/)
-etc.
-
-If not, then put bindings in the formula they bind to. This is more
-useful to people. Just install the stuff! Having to faff around with
-foo-ruby, foo-perl etc. is a bad user experience.
-
### Niche (or self-submitted) stuff
The software in question must: