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>
This commit is contained in:
Romain GARBAGE 2025-06-19 17:03:19 +02:00 committed by Ludovic Courtès
parent cbe9eb7c15
commit a9d7423644
No known key found for this signature in database
GPG key ID: 090B11993D9AEBB5

View file

@ -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,