[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
278/285: profiles: Add 'map-manifest-entries'.
From: |
guix-commits |
Subject: |
278/285: profiles: Add 'map-manifest-entries'. |
Date: |
Sun, 29 Dec 2019 20:44:47 -0500 (EST) |
kkebreau pushed a commit to branch wip-gnome3.34
in repository guix.
commit add824f9095ab5459197c62863bff655d6340775
Author: Ludovic Courtès <address@hidden>
Date: Sun Dec 29 16:19:56 2019 +0100
profiles: Add 'map-manifest-entries'.
* guix/scripts/pack.scm (map-manifest-entries): Move to...
* guix/profiles.scm (map-manifest-entries): ... here.
---
guix/profiles.scm | 6 ++++++
guix/scripts/pack.scm | 5 -----
2 files changed, 6 insertions(+), 5 deletions(-)
diff --git a/guix/profiles.scm b/guix/profiles.scm
index 6166051..5b3b5bd 100644
--- a/guix/profiles.scm
+++ b/guix/profiles.scm
@@ -93,6 +93,7 @@
manifest-pattern-output
concatenate-manifests
+ map-manifest-entries
manifest-remove
manifest-add
manifest-lookup
@@ -520,6 +521,11 @@ procedure is here for backward-compatibility and will
eventually vanish."
"Concatenate the manifests listed in LST and return the resulting manifest."
(manifest (append-map manifest-entries lst)))
+(define (map-manifest-entries proc manifest)
+ "Apply PROC to all the entries of MANIFEST and return a new manifest."
+ (make-manifest
+ (map proc (manifest-entries manifest))))
+
(define (entry-predicate pattern)
"Return a procedure that returns #t when passed a manifest entry that
matches NAME/OUTPUT/VERSION. OUTPUT and VERSION may be #f, in which case they
diff --git a/guix/scripts/pack.scm b/guix/scripts/pack.scm
index 9676d28..536cc17 100644
--- a/guix/scripts/pack.scm
+++ b/guix/scripts/pack.scm
@@ -753,11 +753,6 @@ last resort for relocation."
(manifest-entry-output entry)
args))))
-(define (map-manifest-entries proc manifest)
- "Apply PROC to all the entries of MANIFEST and return a new manifest."
- (make-manifest
- (map proc (manifest-entries manifest))))
-
;;;
;;; Command-line options.
- 249/285: gnu: Add python-pyacoustid., (continued)
- 249/285: gnu: Add python-pyacoustid., guix-commits, 2019/12/29
- 252/285: gnu: python-waf: Update to 2.0.19., guix-commits, 2019/12/29
- 257/285: gnu: portaudio: Add C++ bindings., guix-commits, 2019/12/29
- 256/285: gnu: emacs-shroud: Update to 1.105., guix-commits, 2019/12/29
- 254/285: gnu: Add ardupilot., guix-commits, 2019/12/29
- 259/285: gnu: Add copyq., guix-commits, 2019/12/29
- 263/285: gnu: ruby-ansi: Don't use unstable tarball., guix-commits, 2019/12/29
- 248/285: gnu: Add python-audioread., guix-commits, 2019/12/29
- 251/285: gnu: Add gnome-themes-extra, guix-commits, 2019/12/29
- 267/285: gnu: emacs-auth-source-pass: Use upstream URL., guix-commits, 2019/12/29
- 278/285: profiles: Add 'map-manifest-entries'.,
guix-commits <=
- 276/285: gnu: scummvm: Fix build., guix-commits, 2019/12/29
- 281/285: inferior: Add 'inferior-package-provenance'., guix-commits, 2019/12/29
- 284/285: gnu: gnome-themes-extra: Remove cache file., guix-commits, 2019/12/29
- 216/285: gnu: r-car: Update to 3.0-6., guix-commits, 2019/12/29
- 224/285: guix: emacs-utils: Add emacs-batch-disable-compilation., guix-commits, 2019/12/29
- 250/285: gnu: beets: Add support for Acoustid., guix-commits, 2019/12/29
- 253/285: gnu: python-waf: Add some extra tools., guix-commits, 2019/12/29
- 255/285: gnu: password-store: Make search path single-entry., guix-commits, 2019/12/29
- 258/285: gnu: Add picom., guix-commits, 2019/12/29
- 261/285: gnu: ruby-multi-json: Don't use unstable tarball., guix-commits, 2019/12/29