[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
02/06: pull: Use 'with-store'.
From: |
Ludovic Courtès |
Subject: |
02/06: pull: Use 'with-store'. |
Date: |
Tue, 9 May 2017 12:08:50 -0400 (EDT) |
civodul pushed a commit to branch master
in repository guix.
commit 402e98c524a44f9b8c8e5da86f68ffbd854c6669
Author: Ludovic Courtès <address@hidden>
Date: Tue May 9 15:48:23 2017 +0200
pull: Use 'with-store'.
* guix/scripts/pull.scm (guix-pull): Remove call to 'open-connection'.
Use 'with-store' instead.
---
guix/scripts/pull.scm | 42 +++++++++++++++++++++---------------------
1 file changed, 21 insertions(+), 21 deletions(-)
diff --git a/guix/scripts/pull.scm b/guix/scripts/pull.scm
index 5ab9562..58b87d4 100644
--- a/guix/scripts/pull.scm
+++ b/guix/scripts/pull.scm
@@ -238,29 +238,29 @@ contained therein."
(with-error-handling
(let* ((opts (parse-command-line args %options
(list %default-options)))
- (store (open-connection))
(url (assoc-ref opts 'tarball-url)))
- (set-build-options-from-command-line store opts)
(unless (assoc-ref opts 'dry-run?) ;XXX: not very useful
- (let ((tarball
- (if (use-le-certs? url)
- (let* ((drv (package-derivation store le-certs))
- (certs (string-append (derivation->output-path drv)
- "/etc/ssl/certs")))
- (build-derivations store (list drv))
- (parameterize ((%x509-certificate-directory certs))
- (fetch-tarball store url)))
- (fetch-tarball store url))))
- (unless tarball
- (leave (G_ "failed to download up-to-date source, exiting\n")))
- (parameterize ((%guile-for-build
- (package-derivation store
- (if (assoc-ref opts 'bootstrap?)
- %bootstrap-guile
- (canonical-package
guile-2.0)))))
- (run-with-store store
- (build-and-install tarball (config-directory)
- #:verbose? (assoc-ref opts 'verbose?)))))))))
+ (with-store store
+ (set-build-options-from-command-line store opts)
+ (let ((tarball
+ (if (use-le-certs? url)
+ (let* ((drv (package-derivation store le-certs))
+ (certs (string-append (derivation->output-path drv)
+ "/etc/ssl/certs")))
+ (build-derivations store (list drv))
+ (parameterize ((%x509-certificate-directory certs))
+ (fetch-tarball store url)))
+ (fetch-tarball store url))))
+ (unless tarball
+ (leave (G_ "failed to download up-to-date source, exiting\n")))
+ (parameterize ((%guile-for-build
+ (package-derivation store
+ (if (assoc-ref opts
'bootstrap?)
+ %bootstrap-guile
+ (canonical-package
guile-2.0)))))
+ (run-with-store store
+ (build-and-install tarball (config-directory)
+ #:verbose? (assoc-ref opts
'verbose?))))))))))
;; Local Variables:
;; eval: (put 'with-PATH 'scheme-indent-function 1)
- branch master updated (f0b7dc7 -> 7561881), Ludovic Courtès, 2017/05/09
- 02/06: pull: Use 'with-store'.,
Ludovic Courtès <=
- 06/06: gnu: guix: Build with Guile 2.2., Ludovic Courtès, 2017/05/09
- 03/06: gnu: guile-ssh: Update to 0.11.0., Ludovic Courtès, 2017/05/09
- 05/06: pull: Build package modules without optimizations on Guile 2.2., Ludovic Courtès, 2017/05/09
- 01/06: pull: Honor the standard build options., Ludovic Courtès, 2017/05/09
- 04/06: pull: Build with the matching Guile major version., Ludovic Courtès, 2017/05/09