guix-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

03/06: refresh: Fix format string that would lead '-l' to print incorrec


From: guix-commits
Subject: 03/06: refresh: Fix format string that would lead '-l' to print incorrect numbers.
Date: Fri, 25 Jan 2019 08:06:55 -0500 (EST)

civodul pushed a commit to branch master
in repository guix.

commit 4d6ce0f12cf3724b89876f4e911fc84f344c4215
Author: Ludovic Courtès <address@hidden>
Date:   Fri Jan 25 11:09:31 2019 +0100

    refresh: Fix format string that would lead '-l' to print incorrect numbers.
    
    The skip "~*" argument was misplaced, leading the number of dependents
    to be skipped (instead of the number of covering packages.)  Thus, we'd
    get:
    
      $ guix refresh -l address@hidden
      Building the following package would ensure 1 dependent packages are 
rebuilt: address@hidden
    
    instead of:
    
      Building the following package would ensure 26 dependent packages are 
rebuilt: address@hidden
    
    * guix/scripts/refresh.scm (list-dependents): Move "~*" in the right
    place, to skip (length covering) rather than (length dependents).
---
 guix/scripts/refresh.scm | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/guix/scripts/refresh.scm b/guix/scripts/refresh.scm
index a0de9f6..7292eab 100644
--- a/guix/scripts/refresh.scm
+++ b/guix/scripts/refresh.scm
@@ -419,8 +419,8 @@ the latest known version of ~a (~a)~%")
                  (full-name x)))
         (lst
          (format (current-output-port)
-                 (N_ "Building the following package would ensure ~d \
-dependent packages are rebuilt: ~*~{~a~^ ~}~%"
+                 (N_ "Building the following ~*package would ensure ~d \
+dependent packages are rebuilt: ~{~a~^ ~}~%"
                      "Building the following ~d packages would ensure ~d \
 dependent packages are rebuilt: ~{~a~^ ~}~%"
                      (length covering))



reply via email to

[Prev in Thread] Current Thread [Next in Thread]