diff options
| author | Dominyk Tiller | 2015-06-17 04:58:32 +0100 |
|---|---|---|
| committer | Dominyk Tiller | 2015-06-30 03:00:32 +0100 |
| commit | 986a62ebe97666209f7726c57417a071202b0268 (patch) | |
| tree | 16bd484002c1f16ebcf5ac1f68443d7c5ba6e1e8 /Library | |
| parent | 6c4000d07a92fcb2e6d9004ac70a4bee5cfb1190 (diff) | |
| download | brew-986a62ebe97666209f7726c57417a071202b0268.tar.bz2 | |
audit: flag re-added tap migrations
Re https://github.com/Homebrew/homebrew/commit/411c2178448916d4005c059bc35ee780b5af53f5#commitcomment-11714539
Closes Homebrew/homebrew#40806.
Signed-off-by: Dominyk Tiller <dominyktiller@gmail.com>
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Homebrew/cmd/audit.rb | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/Library/Homebrew/cmd/audit.rb b/Library/Homebrew/cmd/audit.rb index 4851c0744..3a41dbdfa 100644 --- a/Library/Homebrew/cmd/audit.rb +++ b/Library/Homebrew/cmd/audit.rb @@ -3,6 +3,7 @@ require "utils" require "extend/ENV" require "formula_cellar_checks" require "official_taps" +require "tap_migrations" require "cmd/search" module Homebrew @@ -769,6 +770,20 @@ class FormulaAuditor end end + def audit_reverse_migration + # Only enforce for new formula being re-added to core + return unless @strict + return unless formula.core_formula? + + if TAP_MIGRATIONS.has_key?(formula.name) + problem <<-EOS.undent + #{formula.name} seems to be listed in tap_migrations.rb! + Please remove #{formula.name} from present tap & tap_migrations.rb + before submitting it to Homebrew/homebrew. + EOS + end + end + def audit_prefix_has_contents return unless formula.prefix.directory? @@ -823,6 +838,7 @@ class FormulaAuditor text.without_patch.split("\n").each_with_index { |line, lineno| audit_line(line, lineno+1) } audit_installed audit_prefix_has_contents + audit_reverse_migration end private |
