mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2024-12-26 06:18: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)
|
(define (package->manifest-entry* package output)
|
||||||
"Like 'package->manifest-entry', but attach PACKAGE provenance meta-data to
|
"Like 'package->manifest-entry', but attach PACKAGE provenance meta-data to
|
||||||
the resulting manifest entry."
|
the resulting manifest entry."
|
||||||
(define (provenance-properties package)
|
(manifest-entry-with-provenance
|
||||||
(match (package-provenance package)
|
(package->manifest-entry package output)))
|
||||||
(#f '())
|
|
||||||
(sexp `((provenance ,@sexp)))))
|
|
||||||
|
|
||||||
(package->manifest-entry package output
|
|
||||||
#:properties (provenance-properties package)))
|
|
||||||
|
|
||||||
|
|
||||||
(define (options->installable opts manifest transaction)
|
(define (options->installable opts manifest transaction)
|
||||||
"Given MANIFEST, the current manifest, and OPTS, the result of 'args-fold',
|
"Given MANIFEST, the current manifest, and OPTS, the result of 'args-fold',
|
||||||
|
|
Loading…
Reference in a new issue