[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
03/11: packages: 'fold-packages' takes #:select? parameter.
From: |
Ludovic Courtès |
Subject: |
03/11: packages: 'fold-packages' takes #:select? parameter. |
Date: |
Mon, 6 Nov 2017 18:12:19 -0500 (EST) |
civodul pushed a commit to branch master
in repository guix.
commit 96dc8f3527a6ac0c84b51f7a0cac1d8052cf0e72
Author: Ludovic Courtès <address@hidden>
Date: Mon Nov 6 23:21:08 2017 +0100
packages: 'fold-packages' takes #:select? parameter.
* gnu/packages.scm (fold-packages): Add #:select? parameter and honor it.
---
gnu/packages.scm | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)
diff --git a/gnu/packages.scm b/gnu/packages.scm
index b4ac666..97e6cb3 100644
--- a/gnu/packages.scm
+++ b/gnu/packages.scm
@@ -142,13 +142,13 @@ for system '~a'")
(define* (fold-packages proc init
#:optional
- (modules (all-modules (%package-module-path))))
+ (modules (all-modules (%package-module-path)))
+ #:key (select? (negate hidden-package?)))
"Call (PROC PACKAGE RESULT) for each available package defined in one of
-MODULES, using INIT as the initial value of RESULT. It is guaranteed to never
-traverse the same package twice."
+MODULES that matches SELECT?, using INIT as the initial value of RESULT. It
+is guaranteed to never traverse the same package twice."
(fold-module-public-variables (lambda (object result)
- (if (and (package? object)
- (not (hidden-package? object)))
+ (if (and (package? object) (select? object))
(proc object result)
result))
init
- branch master updated (913027f -> a0e4b41), Ludovic Courtès, 2017/11/06
- 04/11: refresh: Account for hidden packages., Ludovic Courtès, 2017/11/06
- 06/11: gnu: electrum: Update to 3.0., Ludovic Courtès, 2017/11/06
- 01/11: Fix ambiguous imports., Ludovic Courtès, 2017/11/06
- 03/11: packages: 'fold-packages' takes #:select? parameter.,
Ludovic Courtès <=
- 02/11: compile: Fix VPATH builds., Ludovic Courtès, 2017/11/06
- 05/11: gnu: Add python-jsonrpclib-pelix., Ludovic Courtès, 2017/11/06
- 07/11: gnu: Add faba-icon-theme., Ludovic Courtès, 2017/11/06
- 09/11: gnu: moka-icon-theme: Add faba-icon-theme as propagated input., Ludovic Courtès, 2017/11/06
- 11/11: gnu: guile-git: Update snapshot., Ludovic Courtès, 2017/11/06
- 08/11: gnu: moka-icon-theme: Simplify package definition., Ludovic Courtès, 2017/11/06
- 10/11: gnu: moka-icon-theme: Fix license., Ludovic Courtès, 2017/11/06