aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--bpkg/cfg-create.cxx5
1 files 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.
//