aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--build2/dist/operation.cxx8
1 files changed, 4 insertions, 4 deletions
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<dir_path> (l));
- if (!exists (dist_root))
- fail << "root distribution directory " << dist_root
- << " does not exist";
-
l = rs->vars["dist.package"];
if (!l || l->empty ())