From 6ae3a7ede926c472686a9e22072970926eef9d90 Mon Sep 17 00:00:00 2001 From: Karen Arutyunov Date: Tue, 10 Aug 2021 12:39:12 +0300 Subject: Fix cfg_create() not to re-initialize temporary directory facility --- bpkg/cfg-create.cxx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/bpkg/cfg-create.cxx b/bpkg/cfg-create.cxx index 29de01c..8101dc0 100644 --- a/bpkg/cfg-create.cxx +++ b/bpkg/cfg-create.cxx @@ -165,9 +165,10 @@ namespace bpkg } } - // Initialize tmp directory. + // Initialize tmp directory, unless it is already initialized. // - init_tmp (c); + if (temp_dir.empty ()) + init_tmp (c); // Create the database. // -- cgit v1.1