diff options
| author | Ludovic Courtès <ludo@gnu.org> | 2018-12-04 10:34:03 +0100 |
|---|---|---|
| committer | Ludovic Courtès <ludo@gnu.org> | 2018-12-04 10:57:56 +0100 |
| commit | 9300e2e893a5c04c7775a13e1dab0943c18d1faf (patch) | |
| tree | f56eed38fed9ca142f70f93c7b9b2a2b17ce4872 | |
| parent | 0a5fa004f7f21dc3e01747b8e94fbb21e056e4ca (diff) | |
refresh: '--list-dependents' ignores deprecated packages.
* guix/scripts/refresh.scm (all-packages): Filter out deprecated packages.
| -rw-r--r-- | guix/scripts/refresh.scm | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/guix/scripts/refresh.scm b/guix/scripts/refresh.scm index 58fc64db1f2..60e822b16bc 100644 --- a/guix/scripts/refresh.scm +++ b/guix/scripts/refresh.scm | |||
| @@ -278,7 +278,12 @@ the latest known version of ~a (~a)~%") | |||
| 278 | 278 | ||
| 279 | (define (all-packages) | 279 | (define (all-packages) |
| 280 | "Return the list of all the distro's packages." | 280 | "Return the list of all the distro's packages." |
| 281 | (fold-packages cons '() | 281 | (fold-packages (lambda (package result) |
| 282 | ;; Ignore deprecated packages. | ||
| 283 | (if (package-superseded package) | ||
| 284 | result | ||
| 285 | (cons package result))) | ||
| 286 | '() | ||
| 282 | #:select? (const #t))) ;include hidden packages | 287 | #:select? (const #t))) ;include hidden packages |
| 283 | 288 | ||
| 284 | (define (list-dependents packages) | 289 | (define (list-dependents packages) |
