emacs: Use 'with-store' in 'process-package-actions'.

* emacs/guix-main.scm (process-package-actions): Use 'with-store'.
master
Alex Kost 2014-10-05 23:52:52 +04:00
parent 75af27f764
commit 1f06b28899
1 changed files with 25 additions and 25 deletions

View File

@ -790,9 +790,9 @@ OUTPUTS is a list of package outputs (may be an empty list)."
(new-manifest (manifest-perform-transaction
manifest transaction)))
(unless (and (null? install) (null? remove))
(let* ((store (open-connection))
(derivation (run-with-store
store (profile-derivation new-manifest)))
(with-store store
(let* ((derivation (run-with-store store
(profile-derivation new-manifest)))
(derivations (list derivation))
(new-profile (derivation->output-path derivation)))
(set-build-options store
@ -814,7 +814,7 @@ OUTPUTS is a list of package outputs (may be an empty list)."
(format #t (N_ "~a package in profile~%"
"~a packages in profile~%"
count)
count)))))))))
count))))))))))
(define (delete-generations* profile generations)
"Delete GENERATIONS from PROFILE.