allow looking at a pkg lockfile in the sandbox

(this comes up when building <pkgs>/ paths, something the
contract system does)
This commit is contained in:
Robby Findler 2014-01-01 10:31:33 -06:00
parent a205963d95
commit 533a2f21f8

View File

@ -4,6 +4,7 @@
racket/path
racket/list
racket/string
racket/file
syntax/moddep
racket/gui/dynamic
planet/config
@ -1002,8 +1003,9 @@
,@(for/list ([l (current-library-collection-links)]
#:when (path? l))
`(read ,l))
,@(for/list ([l (get-pkgs-search-dirs)])
`(read ,(build-path l "pkgs.rktd")))
,@(for*/list ([l (get-pkgs-search-dirs)]
[f (in-list (list "pkgs.rktd" (make-lock-file-name "pkgs.rktd")))])
`(read ,(build-path l f)))
(read ,(build-path (find-user-pkgs-dir) "pkgs.rktd"))
(read-bytecode ,(PLANET-BASE-DIR))
(exists ,(find-system-path 'addon-dir))