aboutsummaryrefslogtreecommitdiff
path: root/bpkg/package-skeleton.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'bpkg/package-skeleton.cxx')
-rw-r--r--bpkg/package-skeleton.cxx12
1 files changed, 12 insertions, 0 deletions
diff --git a/bpkg/package-skeleton.cxx b/bpkg/package-skeleton.cxx
index b565bc1..c53421b 100644
--- a/bpkg/package-skeleton.cxx
+++ b/bpkg/package-skeleton.cxx
@@ -2684,7 +2684,19 @@ namespace bpkg
if (!v)
v = src_root;
else
+ {
+ // If the package directory was moved, then it's possible we will have
+ // bootstrap.build with an old src_root value. Presumably this will
+ // cause the package to be re-configured and so ignoring the old value
+ // here should be ok.
+ //
+#if 0
assert (cast<dir_path> (v) == src_root);
+#else
+ if (cast<dir_path> (v) != src_root)
+ v = src_root;
+#endif
+ }
setup_root (rs, false /* forwarded */);