the result type of main-collects-relative->path is now a path
svn: r11337
This commit is contained in:
parent
fb56a59571
commit
f0e342414b
|
@ -215,15 +215,11 @@
|
||||||
;; (cons 'ext rel-path) => a non-module file (check date)
|
;; (cons 'ext rel-path) => a non-module file (check date)
|
||||||
;; rel-path => a module file name (check transitive dates)
|
;; rel-path => a module file name (check transitive dates)
|
||||||
(define ext? (and (pair? p) (eq? 'ext (car p))))
|
(define ext? (and (pair? p) (eq? 'ext (car p))))
|
||||||
(define d (let ([p (main-collects-relative->path (if ext? (cdr p) p))])
|
(define d (main-collects-relative->path (if ext? (cdr p) p)))
|
||||||
(if (bytes? p)
|
|
||||||
(bytes->path p)
|
|
||||||
p)))
|
|
||||||
(define t
|
(define t
|
||||||
(cond [(not (path? d)) #f] ;; shouldn't happen
|
(if ext?
|
||||||
[ext? (try-file-time d)]
|
(try-file-time d)
|
||||||
[else (compile-root mode d up-to-date
|
(compile-root mode d up-to-date read-src-syntax)))
|
||||||
read-src-syntax)]))
|
|
||||||
(and t (> t path-zo-time)
|
(and t (> t path-zo-time)
|
||||||
(begin (trace-printf "newer: ~a (~a > ~a)..."
|
(begin (trace-printf "newer: ~a (~a > ~a)..."
|
||||||
d t path-zo-time)
|
d t path-zo-time)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user