another fix for CM+DrRacket interaction

(cherry picked from commit 264ec77abd)
This commit is contained in:
Matthew Flatt 2010-07-26 09:41:33 -05:00 committed by Eli Barzilay
parent 0b88d27f8f
commit 5d12f72a52

View File

@ -180,7 +180,9 @@
(try-delete-file tmp-path))))))
(define (get-source-sha1 p)
(with-handlers ([exn:fail:filesystem? (lambda (exn) #f)])
(with-handlers ([exn:fail:filesystem? (lambda (exn)
(and (regexp-match? #rx#"[.]rkt$" (path->bytes p))
(get-source-sha1 (path-replace-suffix p #".ss"))))])
(call-with-input-file* p sha1)))
(define (get-dep-sha1s deps up-to-date read-src-syntax mode must-exist?)