From 0e6d08495733ed268e1624ca6450a0f4ecccac33 Mon Sep 17 00:00:00 2001 From: Karen Arutyunov Date: Sat, 22 Apr 2017 01:30:16 +0300 Subject: Add support for forced rebuild --- brep/build | 6 +++--- brep/build.cxx | 3 ++- brep/build.xml | 1 + 3 files changed, 6 insertions(+), 4 deletions(-) (limited to 'brep') diff --git a/brep/build b/brep/build index adc52ff..42798bb 100644 --- a/brep/build +++ b/brep/build @@ -101,8 +101,8 @@ namespace brep public: using timestamp_type = brep::timestamp; - // Create the build object with the testing state, non-existent status and - // the timestamp set to now. + // Create the build object with the testing state, non-existent status, + // the timestamp set to now and the forced flag set to false. // build (string name, version, string configuration); @@ -120,7 +120,7 @@ namespace brep // True if the package rebuild has been forced. // - //bool forced; + bool forced; // Present only if the state is 'tested'. // diff --git a/brep/build.cxx b/brep/build.cxx index c93c062..48235f5 100644 --- a/brep/build.cxx +++ b/brep/build.cxx @@ -39,7 +39,8 @@ namespace brep package_version (move (pvr)), configuration (id.configuration), state (build_state::testing), - timestamp (timestamp_type::clock::now ()) + timestamp (timestamp_type::clock::now ()), + forced (false) { } } diff --git a/brep/build.xml b/brep/build.xml index 5f75928..2a222f4 100644 --- a/brep/build.xml +++ b/brep/build.xml @@ -11,6 +11,7 @@ + -- cgit v1.1