Clean elc file if it is the *same* age as el file

Before, it would only be cleaned if it was older. Now being exactly
the same age also means it gets cleaned. This is because if they are
the same age, we don't know which came first, so we just have to
assume that the elc file is stale and recreate it.
This commit is contained in:
Ryan C. Thompson 2012-02-26 14:51:27 -08:00
parent d639825957
commit 85f273b740

View File

@ -99,7 +99,7 @@ With optional arg RECURSIVE, do so in all subdirectories as well."
for el = (concat (file-name-sans-extension elc) ".el")
if (and (file-exists-p elc)
(not (file-directory-p elc))
(file-newer-than-file-p el elc))
(not (file-newer-than-file-p elc el)))
do (progn
(message "el-get-byte-compile: Cleaning stale compiled file %s" elc)
(delete-file elc nil)))