aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/dev-cmd
diff options
context:
space:
mode:
authorMike McQuaid2017-04-10 21:04:26 +0100
committerMike McQuaid2017-04-10 19:03:44 -0700
commit88a75af1c365c4b770807665f692896304accdc9 (patch)
treee12a1d60129dec46ae42a758da2a46ce5428f2a6 /Library/Homebrew/dev-cmd
parent5d74069b98a9a4a923c748e33b5f101a45ceac83 (diff)
downloadbrew-88a75af1c365c4b770807665f692896304accdc9.tar.bz2
audit: don't recommend version aliases on --devel.
As requested in #11462 by @neutric as this produces confusing, incorrect output.
Diffstat (limited to 'Library/Homebrew/dev-cmd')
-rw-r--r--Library/Homebrew/dev-cmd/audit.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/Library/Homebrew/dev-cmd/audit.rb b/Library/Homebrew/dev-cmd/audit.rb
index ba6c3f333..fb6fb62d0 100644
--- a/Library/Homebrew/dev-cmd/audit.rb
+++ b/Library/Homebrew/dev-cmd/audit.rb
@@ -337,7 +337,7 @@ class FormulaAuditor
unversioned_name = unversioned_formula.basename(".rb")
problem "#{formula} is versioned but no #{unversioned_name} formula exists"
end
- else
+ elsif ARGV.build_stable?
versioned_formulae = Dir[formula.path.to_s.gsub(/\.rb$/, "@*.rb")]
needs_versioned_alias = !versioned_formulae.empty? &&
formula.tap &&