Better handle failures when computing the transative supported inputs
This commit is contained in:
parent
944492bd79
commit
d62ea8857d
1 changed files with 46 additions and 32 deletions
|
|
@ -63,7 +63,20 @@
|
||||||
#t
|
#t
|
||||||
(lambda ()
|
(lambda ()
|
||||||
(let ((supported-systems
|
(let ((supported-systems
|
||||||
(package-transitive-supported-systems package)))
|
(catch
|
||||||
|
#t
|
||||||
|
(lambda ()
|
||||||
|
(package-transitive-supported-systems package))
|
||||||
|
(lambda (key . args)
|
||||||
|
(simple-format
|
||||||
|
(current-error-port)
|
||||||
|
"error: while processing ~A, unable to compute transitive supported systems\n"
|
||||||
|
(package-name package))
|
||||||
|
(simple-format
|
||||||
|
(current-error-port)
|
||||||
|
"error ~A: ~A\n" key args)
|
||||||
|
#f))))
|
||||||
|
(if supported-systems
|
||||||
(append-map
|
(append-map
|
||||||
(lambda (system)
|
(lambda (system)
|
||||||
(filter-map
|
(filter-map
|
||||||
|
|
@ -94,7 +107,8 @@
|
||||||
(lset-intersection
|
(lset-intersection
|
||||||
string=?
|
string=?
|
||||||
supported-systems
|
supported-systems
|
||||||
(list ,@(map car system-target-pairs))))))
|
(list ,@(map car system-target-pairs))))
|
||||||
|
'())))
|
||||||
(lambda args
|
(lambda args
|
||||||
(simple-format (current-error-port)
|
(simple-format (current-error-port)
|
||||||
"error: while processing ~A ignoring error: ~A\n"
|
"error: while processing ~A ignoring error: ~A\n"
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue