guix-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

01/04: guix archive: Use 'with-store'.


From: Ludovic Courtès
Subject: 01/04: guix archive: Use 'with-store'.
Date: Wed, 02 Mar 2016 13:53:48 +0000

civodul pushed a commit to branch master
in repository guix.

commit 1cbdf82d3ba5b257e44144788244139ae15689c8
Author: Ludovic Courtès <address@hidden>
Date:   Wed Mar 2 13:25:50 2016 +0100

    guix archive: Use 'with-store'.
    
    * guix/scripts/archive.scm (guix-archive): Use 'with-store' instead of
    an explicit 'open-connection'.
---
 guix/scripts/archive.scm |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/guix/scripts/archive.scm b/guix/scripts/archive.scm
index 1a941d1..16ca96b 100644
--- a/guix/scripts/archive.scm
+++ b/guix/scripts/archive.scm
@@ -1,5 +1,5 @@
 ;;; GNU Guix --- Functional package management for GNU
-;;; Copyright © 2013, 2014, 2015 Ludovic Courtès <address@hidden>
+;;; Copyright © 2013, 2014, 2015, 2016 Ludovic Courtès <address@hidden>
 ;;;
 ;;; This file is part of GNU Guix.
 ;;;
@@ -324,7 +324,7 @@ the input port."
               ((assoc-ref opts 'authorize)
                (authorize-key))
               (else
-               (let ((store (open-connection)))
+               (with-store store
                  (cond ((assoc-ref opts 'export)
                         (export-from-store store opts))
                        ((assoc-ref opts 'import)



reply via email to

[Prev in Thread] Current Thread [Next in Thread]