From 1cbdf82d3ba5b257e44144788244139ae15689c8 Mon Sep 17 00:00:00 2001 From: Ludovic Courtès Date: Wed, 2 Mar 2016 13:25:50 +0100 Subject: 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 file changed, 2 insertions(+), 2 deletions(-) diff --git a/guix/scripts/archive.scm b/guix/scripts/archive.scm index 1a941d1a73..16ca96bdf5 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 +;;; Copyright © 2013, 2014, 2015, 2016 Ludovic Courtès ;;; ;;; This file is part of GNU Guix. ;;; @@ -324,7 +324,7 @@ (define (lines 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) -- cgit v1.2.3