Skip to content
Snippets Groups Projects
Commit d8a5a33e authored by Mike McQuaid's avatar Mike McQuaid Committed by GitHub
Browse files

Merge pull request #1916 from MikeMcQuaid/cellar-check-etc

formula_cellar_checks: check for prefix/etc.
parents 1f97e318 1aa179ad
No related branches found
No related tags found
No related merge requests found
......@@ -153,6 +153,16 @@ module FormulaCellarChecks
EOS
end
def check_etc
bad_etc = (formula.prefix/"etc")
return unless bad_etc.directory?
<<-EOS.undent
#{bad_etc} exists!
The contents should instead be installed into:
#{formula.etc}
EOS
end
def audit_installed
audit_check_output(check_manpages)
audit_check_output(check_infopages)
......@@ -165,6 +175,7 @@ module FormulaCellarChecks
audit_check_output(check_easy_install_pth(formula.lib))
audit_check_output(check_elisp_dirname(formula.share, formula.name))
audit_check_output(check_elisp_root(formula.share, formula.name))
audit_check_output(check_etc)
end
alias generic_audit_installed audit_installed
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment