aboutsummaryrefslogtreecommitdiff
path: root/bpkg/cfg-create.cxx
diff options
context:
space:
mode:
authorKaren Arutyunov <karen@codesynthesis.com>2021-07-02 12:03:24 +0300
committerKaren Arutyunov <karen@codesynthesis.com>2021-07-02 12:03:24 +0300
commita14677a9b3bdfaa59fd4a010bff3530472768954 (patch)
treec0814e96d3023ea22ce6117067f90e51823e6164 /bpkg/cfg-create.cxx
parentca439ff4ca3f36a803419575e2db3a3ab4775c4b (diff)
Diffstat (limited to 'bpkg/cfg-create.cxx')
-rw-r--r--bpkg/cfg-create.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/bpkg/cfg-create.cxx b/bpkg/cfg-create.cxx
index 98d6aea..42c7cea 100644
--- a/bpkg/cfg-create.cxx
+++ b/bpkg/cfg-create.cxx
@@ -54,7 +54,7 @@ namespace bpkg
hc = normalize (*host_config, "host configuration");
database db (hc, trace, false /* pre_attach */);
- if (db.type != "host")
+ if (db.type != host_config_type)
fail << "host configuration " << hc << " is of '" << db.type
<< "' type";
}