info.rkt: cosmetics

This commit is contained in:
Brian Leung 2023-01-26 18:47:54 -08:00
parent 029dcc6358
commit d685c829a3
No known key found for this signature in database
GPG Key ID: 2D86D6A94C8BB3B1

View File

@ -205,18 +205,17 @@
[sources-hash-table (make-immutable-hash (append sources-from-catalog [sources-hash-table (make-immutable-hash (append sources-from-catalog
sources-from-git sources-from-git
sources-from-repo))] sources-from-repo))]
[sources (make-immutable-hash (hash-map dependency-subgraph [sources (hash-map/copy dependency-subgraph
(lambda (name _v) (lambda (name _v)
(cons (string->symbol name) (hash-ref sources-hash-table (string->symbol name))))))] (values (string->symbol name) (hash-ref sources-hash-table (string->symbol name)))))]
[dream-lock (make-immutable-hash [dream-lock (make-immutable-hash
`((_generic . ,generic) `((_generic . ,generic)
(sources . ,sources) (sources . ,sources)
(_subsystem . ,(make-immutable-hash)) (_subsystem . ,(make-immutable-hash))
(dependencies . ,(make-immutable-hash (dependencies . ,(hash-map/copy dependency-subgraph
(hash-map dependency-subgraph (lambda (name dep-list)
(lambda (name dep-list) (values (string->symbol name)
(cons (string->symbol name) (make-immutable-hash `((0.0.0 . ,(map (lambda (dep-name) (list dep-name "0.0.0")) dep-list))))))))))])
(make-immutable-hash `((0.0.0 . ,(map (lambda (dep-name) (list dep-name "0.0.0")) dep-list)))))))))))])
(make-parent-directory* (getenv "RACKET_OUTPUT_FILE")) (make-parent-directory* (getenv "RACKET_OUTPUT_FILE"))
(with-output-to-file (getenv "RACKET_OUTPUT_FILE") (with-output-to-file (getenv "RACKET_OUTPUT_FILE")
(lambda () (write-json dream-lock)) (lambda () (write-json dream-lock))