From 9e0a7fb00073547cebf0b2e1609cda96b8b2d991 Mon Sep 17 00:00:00 2001 From: Christopher Baines Date: Sat, 22 Jun 2024 18:21:20 +0100 Subject: Tweak derivation-changes-vectors->builds-to-keep-and-submit Use a different variable name for the initial derivation-changes-vectors, and fix a index increment. --- guix-qa-frontpage/manage-builds.scm | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/guix-qa-frontpage/manage-builds.scm b/guix-qa-frontpage/manage-builds.scm index 350c7d9..3f582cf 100644 --- a/guix-qa-frontpage/manage-builds.scm +++ b/guix-qa-frontpage/manage-builds.scm @@ -665,7 +665,7 @@ (list (assoc-ref derivation-changes "derivation_changes")) priority)) -(define (derivation-changes-vectors->builds-to-keep-and-submit derivation-changes-vectors +(define (derivation-changes-vectors->builds-to-keep-and-submit all-derivation-changes-vectors priority) (define (process-change? change) (and (string=? (assoc-ref change "target") @@ -688,7 +688,7 @@ ;; So bad, but hopefully keeps memory usage down compared to converting to ;; lists and flattening - (let loop1 ((derivation-changes-vectors derivation-changes-vectors) + (let loop1 ((derivation-changes-vectors all-derivation-changes-vectors) (builds-to-submit-details '()) (build-ids-to-keep-set (set))) (if (null? derivation-changes-vectors) @@ -752,7 +752,7 @@ (vector->list (assoc-ref change "builds")))) - (loop3 (1+ changes-index) + (loop3 (1+ change-target-index) builds-to-submit-details build-ids-to-keep-set)))))))))))) -- cgit v1.2.3