Skip to content
Snippets Groups Projects
Unverified Commit af77219e authored by Ludovic Courtès's avatar Ludovic Courtès
Browse files

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'.
parent 4d6ce0f1
No related branches found
No related tags found
No related merge requests found
...@@ -400,7 +400,7 @@ (define (full-name package) ...@@ -400,7 +400,7 @@ (define (full-name package)
(package-version package))) (package-version package)))
(mlet %store-monad ((edges (node-back-edges %bag-node-type (mlet %store-monad ((edges (node-back-edges %bag-node-type
(all-packages)))) (package-closure (all-packages)))))
(let* ((dependents (node-transitive-edges packages edges)) (let* ((dependents (node-transitive-edges packages edges))
(covering (filter (lambda (node) (covering (filter (lambda (node)
(null? (edges node))) (null? (edges node)))
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment