mirror of
https://github.com/Homebrew/brew.git
synced 2025-07-14 16:09:03 +08:00
audit_file: check formula path
This commit is contained in:
parent
66eb266038
commit
de8eb35b73
@ -123,6 +123,14 @@ module Homebrew
|
|||||||
EOS
|
EOS
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
return if !formula.core_formula? && formula.path == formula.tap.new_formula_path(formula.name)
|
||||||
|
|
||||||
|
problem <<~EOS
|
||||||
|
Formula is in wrong path:
|
||||||
|
Expected: #{formula.tap.new_formula_path(formula.name)}
|
||||||
|
Actual: #{formula.path}
|
||||||
|
EOS
|
||||||
end
|
end
|
||||||
|
|
||||||
def self.aliases
|
def self.aliases
|
||||||
|
Loading…
x
Reference in New Issue
Block a user