Only compute derivations if there are any to fix

This commit is contained in:
Christopher Baines 2025-06-27 10:39:41 +02:00
parent 42e45c0917
commit 76cc8d82b9

View file

@ -1530,6 +1530,7 @@ WHERE builder != 'builtin:download'
#:ignore-targets ignore-targets))) #:ignore-targets ignore-targets)))
(simple-format #t "~A broken derivations\n" (simple-format #t "~A broken derivations\n"
(length broken-derivations)) (length broken-derivations))
(unless (= 0 broken-derivations)
(run-fibers (run-fibers
(lambda () (lambda ()
(with-exception-handler (with-exception-handler
@ -1709,7 +1710,7 @@ WHERE builder != 'builtin:download'
(length broken-derivations)) (length broken-derivations))
(for-each fix-derivation (for-each fix-derivation
broken-derivations))) broken-derivations))))
(define* (derivation-file-names->derivation-ids postgresql-connection-pool (define* (derivation-file-names->derivation-ids postgresql-connection-pool
call-with-utility-thread call-with-utility-thread