diff options
| author | Mike McQuaid | 2017-01-26 18:29:25 +0000 |
|---|---|---|
| committer | GitHub | 2017-01-26 18:29:25 +0000 |
| commit | d8a5a33eeba7010cfb4201b85af37cd2b9ec5ea2 (patch) | |
| tree | b779946f7426d111462922fee8ddcb86b18a2c6a | |
| parent | 1f97e3186a117541f127f6e52ce77238a2791147 (diff) | |
| parent | 1aa179ad9a835ba56e8f5e8eb85489ca7a9dd131 (diff) | |
| download | brew-d8a5a33eeba7010cfb4201b85af37cd2b9ec5ea2.tar.bz2 | |
Merge pull request #1916 from MikeMcQuaid/cellar-check-etc
formula_cellar_checks: check for prefix/etc.
| -rw-r--r-- | Library/Homebrew/formula_cellar_checks.rb | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/Library/Homebrew/formula_cellar_checks.rb b/Library/Homebrew/formula_cellar_checks.rb index 7db5e748b..f72f36c48 100644 --- a/Library/Homebrew/formula_cellar_checks.rb +++ b/Library/Homebrew/formula_cellar_checks.rb @@ -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 |
