guix-commits
[Top][All Lists]
Advanced

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

04/06: refresh: Better account for private and generated packages.


From: guix-commits
Subject: 04/06: refresh: Better account for private and generated packages.
Date: Fri, 25 Jan 2019 08:06:55 -0500 (EST)

civodul pushed a commit to branch master
in repository guix.

commit af77219e8a59c9d04cda349b26b7f30ea5cf3ab1
Author: Ludovic Courtès <address@hidden>
Date:   Fri Jan 25 12:09:33 2019 +0100

    refresh: Better account for private and generated packages.
    
    Until now, private and generated packages (e.g., those created by
    'texlive-union') we missing from the list passed to 'node-back-edges',
    which would lead to inaccurate dependent counts.
    
    Previously we'd get:
    
      $ guix refresh -l texlive-fonts-cm
      Building the following 80 packages would ensure 116 dependent packages
      are rebuilt: …
    
    Now we have:
    
      $ Building the following 240 packages would ensure 597 dependent
      packages are rebuilt: …
    
    * guix/scripts/refresh.scm (list-dependents): Call 'package-closure'.
---
 guix/scripts/refresh.scm | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/guix/scripts/refresh.scm b/guix/scripts/refresh.scm
index 7292eab..5b0f345 100644
--- a/guix/scripts/refresh.scm
+++ b/guix/scripts/refresh.scm
@@ -400,7 +400,7 @@ the latest known version of ~a (~a)~%")
                    (package-version package)))
 
   (mlet %store-monad ((edges (node-back-edges %bag-node-type
-                                              (all-packages))))
+                                              (package-closure 
(all-packages)))))
     (let* ((dependents (node-transitive-edges packages edges))
            (covering   (filter (lambda (node)
                                  (null? (edges node)))



reply via email to

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