From 051b82faceb98f431a12e2d81992d53f97c4153a Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Wed, 31 Oct 2018 10:48:40 +0200 Subject: Warn if publishing with a staged toolchain --- bdep/publish.cxx | 4 ++++ tests/publish.testscript | 1 + 2 files changed, 5 insertions(+) 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\)?% -- cgit v1.1