mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2024-12-24 21:38:07 -05:00
ci: Catch error for unreachable channel with substitutes.
* guix/ci.scm (channel-with-substitutes-available): Catch all error when running 'find-latest-commit-with-substitutes'. Move the warning when failing. Change-Id: I352e07f14417f77c7ebf0f40a01c6a2e58b15d78
This commit is contained in:
parent
ae2591d028
commit
ffdcef5f36
1 changed files with 7 additions and 4 deletions
11
guix/ci.scm
11
guix/ci.scm
|
@ -336,10 +336,13 @@ (define (channel-with-substitutes-available chan url)
|
|||
|
||||
If no commit with available substitutes were found, the commit field is set to
|
||||
false and a warning message is printed."
|
||||
(let ((commit (find-latest-commit-with-substitutes url)))
|
||||
(unless commit
|
||||
(warning (G_ "could not find available substitutes at ~a~%")
|
||||
url))
|
||||
(let ((commit (catch #t
|
||||
(lambda ()
|
||||
(find-latest-commit-with-substitutes url))
|
||||
(lambda _
|
||||
(warning (G_ "could not find available substitutes at ~a~%")
|
||||
url)
|
||||
#false))))
|
||||
(channel
|
||||
(inherit chan)
|
||||
(commit commit))))
|
||||
|
|
Loading…
Reference in a new issue