mirror of
https://github.com/dimitri/el-get.git
synced 2024-09-29 04:58:53 +08:00
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:
parent
d639825957
commit
85f273b740
|
@ -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)))
|
||||
|
|
Loading…
Reference in New Issue
Block a user