check_emacs_lisp(): bail unless site-lisp exists

Closes Homebrew/homebrew#42345.
This commit is contained in:
Alex Dunn 2015-08-01 15:42:56 -07:00
parent 81eedecc5a
commit 8faaba6665

View File

@ -174,7 +174,7 @@ module FormulaCellarChecks
end
def check_emacs_lisp(share, name)
return unless share.directory?
return unless (share/"emacs/site-lisp").directory?
# Emacs itself can do what it wants
return if name == "emacs"