fix `enter!' reloading on a ".ss" path

This commit is contained in:
Matthew Flatt 2010-07-23 14:14:18 -05:00
parent b8df3839e6
commit 82588438c2

View File

@ -81,7 +81,13 @@
(orig path name))))
(define (get-timestamp path)
(file-or-directory-modify-seconds path #f (lambda () -inf.0)))
(let ([v (file-or-directory-modify-seconds path #f (lambda () -inf.0))])
(if (and (equal? v -inf.0)
(regexp-match? #rx#"[.]rkt$" (path->bytes path)))
(file-or-directory-modify-seconds (path-replace-suffix path #".ss")
#f
(lambda () -inf.0))
v)))
(define (check-latest mod)
(let ([mpi (module-path-index-join mod #f)]