diff options
author | Karen Arutyunov <karen@codesynthesis.com> | 2019-09-03 17:14:57 +0300 |
---|---|---|
committer | Karen Arutyunov <karen@codesynthesis.com> | 2019-09-03 17:14:57 +0300 |
commit | 476360684b6dfa60202b4b12654a019fac3045b2 (patch) | |
tree | efe4908fc614c199b0406aaa5f0009ea35ae0689 /bbot/worker/worker.cxx | |
parent | 8989a43013426bed8cb5b1f41de3ae19dc62d22e (diff) |
Fix worker building latest revision rather than zero revision
Diffstat (limited to 'bbot/worker/worker.cxx')
-rw-r--r-- | bbot/worker/worker.cxx | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/bbot/worker/worker.cxx b/bbot/worker/worker.cxx index bfac375..172f5e1 100644 --- a/bbot/worker/worker.cxx +++ b/bbot/worker/worker.cxx @@ -582,6 +582,15 @@ build (size_t argc, const char* argv[]) // // bpkg.configure.build // + // Specify the revision explicitly not to end up with a race condition + // building the latest revision rather than the zero revision. + // + bpkg::version v (tm.version.epoch, + tm.version.upstream, + tm.version.release, + tm.version.effective_revision (), + tm.version.iteration); + r.status |= run_bpkg ( trace, r.log, wre, "-v", @@ -591,7 +600,7 @@ build (size_t argc, const char* argv[]) step_args (config_args, step_id::bpkg_configure_build), step_args (env_args, step_id::bpkg_configure_build), "--", - tm.name.string () + '/' + tm.version.string ()); + tm.name.string () + '/' + v.string ()); if (!r.status) break; |