Ignore out-of-date uncompressed debugging info files.
authorTaylor R Campbell <campbell@mumble.net>
Fri, 13 Aug 2010 20:58:42 +0000 (20:58 +0000)
committerTaylor R Campbell <campbell@mumble.net>
Fri, 13 Aug 2010 20:58:42 +0000 (20:58 +0000)
Fixes

(load "x")
(pp foo)
;Output: (named-lambda (foo x y z) ...)

;; Edit x.scm and recompile.

(load "x")
(pp foo)
;Output: #[compiled-procedure foo ...]

src/runtime/infutl.scm

index 84cd154f8763e5491127426adb3ff7d0d5211ec5..8b65fad213972300eb30fa3a5f79ead15decac2f 100644 (file)
@@ -736,7 +736,8 @@ USA.
              (if-not-found))
             ((and (pathname=? (caar entries) compressed-file)
                   (cddar entries)
-                  (or (file-exists? (cadar entries))
+                  (or (file-modification-time<? compressed-file
+                                                (cadar entries))
                       (begin
                         (set-cdr! (cdar entries) #f)
                         #f)))