mhw pushed a commit to branch wip-icecat-68
in repository guix.

commit 338c14c093cda5336eb963fdf9ff99e9841055c2
Author: Mark H Weaver <[email protected]>
Date:   Wed Oct 23 15:03:07 2019 -0400

    gnu: icecat: Fix off-by-one error in "Retrying build" message.
    
    * gnu/packages/gnuzilla.scm (icecat)[arguments]: In the custom 'build' 
phase,
    fix an off-by-one error in the number of remaining attempts when printing 
the
    "Retrying build" message.
---
 gnu/packages/gnuzilla.scm | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/gnu/packages/gnuzilla.scm b/gnu/packages/gnuzilla.scm
index 81d640f..fd579f0 100644
--- a/gnu/packages/gnuzilla.scm
+++ b/gnu/packages/gnuzilla.scm
@@ -1031,7 +1031,7 @@ from forcing GEXP-PROMISE."
                      (apply build args)
                      (guard (c ((invoke-error? c)
                                 (format #t "~%Retrying build! (~a attempts 
remaining)~%~%"
-                                        remaining-attempts)
+                                        (- remaining-attempts 1))
                                 (force-output)
                                 (retry (- remaining-attempts 1))))
                        (apply build args)))))))

Reply via email to