From 333c5953151d6324d83d279a7ac3c53cd1af54b9 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Tue, 15 Sep 2015 10:58:17 +0200 Subject: Implement pkg-verify, pkg-fetch commands --- bpkg/database.cxx | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'bpkg/database.cxx') diff --git a/bpkg/database.cxx b/bpkg/database.cxx index 01488c6..3488fa1 100644 --- a/bpkg/database.cxx +++ b/bpkg/database.cxx @@ -11,6 +11,7 @@ #include #include +#include #include using namespace std; @@ -25,6 +26,9 @@ namespace bpkg { path f (d / path ("bpkg.sqlite3")); + if (!create && !exists (f)) + fail << d << " does not look like a bpkg configuration directory"; + try { // We don't need the thread pool. -- cgit v1.1