summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2018-10-31 10:48:40 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2018-10-31 10:48:40 +0200
commit051b82faceb98f431a12e2d81992d53f97c4153a (patch)
tree3e388873652ae07a677f47abef3aa5186535b13d
parentb76178a33178a6385bf0a9ee695b54e7992117a1 (diff)
downloadbdep-051b82faceb98f431a12e2d81992d53f97c4153a.tar.gz
bdep-051b82faceb98f431a12e2d81992d53f97c4153a.tar.xz
bdep-051b82faceb98f431a12e2d81992d53f97c4153a.zip
Warn if publishing with a staged toolchain
-rw-r--r--bdep/publish.cxx4
-rw-r--r--tests/publish.testscript1
2 files changed, 5 insertions, 0 deletions
diff --git a/bdep/publish.cxx b/bdep/publish.cxx
index 32687d5..e46ac88 100644
--- a/bdep/publish.cxx
+++ b/bdep/publish.cxx
@@ -179,6 +179,10 @@ namespace bdep
<< " control: " << *ctrl;
}
+#ifdef BDEP_STAGE
+ warn << "publishing using staged build2 toolchain";
+#endif
+
if (!yn_prompt ("continue? [y/n]"))
return 1;
}
diff --git a/tests/publish.testscript b/tests/publish.testscript
index 3af339b..97a0dfb 100644
--- a/tests/publish.testscript
+++ b/tests/publish.testscript
@@ -166,6 +166,7 @@ windows = ($cxx.target.class == 'windows')
version: 1.0.4
project: prj
section: stable
+ %warning: publishing using staged build2 toolchain%?
continue? [y/n] submitting libprj-1.0.4.tar.gz
%.*
%package submission is queued\(: .*libprj/1\\.0\\.4\)?%