aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--bdep/new.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/bdep/new.cxx b/bdep/new.cxx
index c76549c..d2a4229 100644
--- a/bdep/new.cxx
+++ b/bdep/new.cxx
@@ -639,7 +639,7 @@ namespace bdep
prj = move (pkg);
}
- if (!out.sub (prj))
+ if (!out.sub (prj) || out == prj)
fail << "source subdirectory " << out << " is not a subdirectory of "
<< "package directory " << prj;