summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRomain GARBAGE <romain.garbage@inria.fr>2025-06-19 17:03:19 +0200
committerLudovic Courtès <ludo@gnu.org>2025-06-26 16:56:54 +0200
commita9d7423644625445594442450343588afab951d9 (patch)
treeec3e201d11bdf32966a1f5706331a024a30311e6
parentcbe9eb7c1536d2144eaf8e7310e6de00d45ebc14 (diff)
pack: Don't export properties when SAVE-PROVENANCE is not set.
* guix/scripts/pack.scm (guix-pack): Don't export properties when SAVE-PROVENANCE is not set. Change-Id: I956721d1238631451758057a7c9cf13e2da7c59a Signed-off-by: Ludovic Courtès <ludo@gnu.org> Modified-by: Ludovic Courtès <ludo@gnu.org>
-rw-r--r--guix/scripts/pack.scm5
1 files changed, 4 insertions, 1 deletions
diff --git a/guix/scripts/pack.scm b/guix/scripts/pack.scm
index 1d2046775c..b7897227bc 100644
--- a/guix/scripts/pack.scm
+++ b/guix/scripts/pack.scm
@@ -1749,7 +1749,10 @@ Create a bundle of PACKAGE.\n"))
(load* file user-module)))
manifests)))
(else
- (packages->manifest packages))))))
+ (packages->manifest packages
+ #:properties (if (assoc-ref opts 'save-provenance?)
+ default-package-properties
+ (const '()))))))))
(define (process-file-arg opts name)
;; Validate that the file exists and return it as a <local-file> object,