Better guard against errors in packages when loading revisions

In particular, things like undefined variables in the package
definition.
This commit is contained in:
Christopher Baines 2019-03-15 09:31:08 +00:00
parent d2697d8dd2
commit c4c1f15050
Signed by: cbaines
GPG key ID: 5E28A33B0B84F577

View file

@ -30,9 +30,11 @@
`(lambda (store)
(append-map
(lambda (inferior-package-id)
(let* ((package
(hashv-ref %package-table inferior-package-id))
(supported-systems
(let ((package (hashv-ref %package-table inferior-package-id)))
(catch
#t
(lambda ()
(let ((supported-systems
(package-transitive-supported-systems package)))
(append-map
(lambda (system)
@ -53,9 +55,16 @@
target
system))))))
(lambda args
;; misc-error #f ~A ~S (No cross-compilation for clojure-build-system yet:
#f)))
supported-systems))
supported-systems)))
(lambda args
(simple-format (current-error-port)
"error: while processing ~A ignoring error: ~A\n"
(package-name package)
args)
'()))))
(list ,@(map inferior-package-id packages)))))
(inferior-eval-with-store inf store proc))