make DrRacket cache path->pkg calls within a single 'Run'
This commit is contained in:
parent
41ea8f3358
commit
093fba97d9
|
@ -85,12 +85,13 @@
|
|||
(define skip-path?
|
||||
(let* ([cd (find-collects-dir)]
|
||||
[sd (find-share-dir)]
|
||||
[path->pkg-cache (make-hash)]
|
||||
[no-dirs (append
|
||||
(list (CACHE-DIR))
|
||||
(if cd (list cd) null)
|
||||
(if sd (list sd) null))])
|
||||
(λ (p) (or (file-stamp-in-paths p no-dirs)
|
||||
(let ([pkg (path->pkg p)])
|
||||
(let ([pkg (path->pkg p path->pkg-cache)])
|
||||
(and pkg
|
||||
(not (set-member? open-pkgs pkg))
|
||||
(file-stamp-in-paths p (list (pkg-directory pkg)))))))))
|
||||
|
|
Loading…
Reference in New Issue
Block a user