refresh: '--list-dependents' ignores deprecated packages.
* guix/scripts/refresh.scm (all-packages): Filter out deprecated packages.
This commit is contained in:
parent
0a5fa004f7
commit
9300e2e893
|
@ -278,7 +278,12 @@ the latest known version of ~a (~a)~%")
|
||||||
|
|
||||||
(define (all-packages)
|
(define (all-packages)
|
||||||
"Return the list of all the distro's packages."
|
"Return the list of all the distro's packages."
|
||||||
(fold-packages cons '()
|
(fold-packages (lambda (package result)
|
||||||
|
;; Ignore deprecated packages.
|
||||||
|
(if (package-superseded package)
|
||||||
|
result
|
||||||
|
(cons package result)))
|
||||||
|
'()
|
||||||
#:select? (const #t))) ;include hidden packages
|
#:select? (const #t))) ;include hidden packages
|
||||||
|
|
||||||
(define (list-dependents packages)
|
(define (list-dependents packages)
|
||||||
|
|
Loading…
Reference in New Issue