From 20f16bb63b57c5e9dc4053219a5e8294d51fa762 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Fri, 12 Apr 2019 16:42:49 +0200 Subject: Don't complain if dist.root does not exist and just create it instead --- build2/dist/operation.cxx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'build2') diff --git a/build2/dist/operation.cxx b/build2/dist/operation.cxx index 5d46b6e..8490db4 100644 --- a/build2/dist/operation.cxx +++ b/build2/dist/operation.cxx @@ -95,12 +95,12 @@ namespace build2 fail << "unknown root distribution directory" << info << "did you forget to specify config.dist.root?"; + // We used to complain if dist.root does not exist but then, similar + // to install, got tired of user's complaints. So now we just let + // install -d for the package directory create it if necessary. + // const dir_path& dist_root (cast (l)); - if (!exists (dist_root)) - fail << "root distribution directory " << dist_root - << " does not exist"; - l = rs->vars["dist.package"]; if (!l || l->empty ()) -- cgit v1.1