mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2024-12-25 05:48:07 -05:00
guix package: Simplify 'package->manifest-entry*'.
* guix/scripts/package.scm (package->manifest-entry*): Rewrite in terms of 'manifest-entry-with-provenance'.
This commit is contained in:
parent
db2785cd86
commit
4eeaae7994
1 changed files with 2 additions and 8 deletions
|
@ -585,14 +585,8 @@ (define (store-item->manifest-entry item)
|
|||
(define (package->manifest-entry* package output)
|
||||
"Like 'package->manifest-entry', but attach PACKAGE provenance meta-data to
|
||||
the resulting manifest entry."
|
||||
(define (provenance-properties package)
|
||||
(match (package-provenance package)
|
||||
(#f '())
|
||||
(sexp `((provenance ,@sexp)))))
|
||||
|
||||
(package->manifest-entry package output
|
||||
#:properties (provenance-properties package)))
|
||||
|
||||
(manifest-entry-with-provenance
|
||||
(package->manifest-entry package output)))
|
||||
|
||||
(define (options->installable opts manifest transaction)
|
||||
"Given MANIFEST, the current manifest, and OPTS, the result of 'args-fold',
|
||||
|
|
Loading…
Reference in a new issue