aboutsummaryrefslogtreecommitdiff
path: root/brep
diff options
context:
space:
mode:
authorKaren Arutyunov <karen@codesynthesis.com>2017-04-22 01:30:16 +0300
committerKaren Arutyunov <karen@codesynthesis.com>2017-04-22 16:08:45 +0300
commit0e6d08495733ed268e1624ca6450a0f4ecccac33 (patch)
tree0d2f58c87a96ebca97f17b7c5697413fc9118908 /brep
parent7cde0aab8206a5d95091860a8c1114d625f5280a (diff)
Add support for forced rebuild
Diffstat (limited to 'brep')
-rw-r--r--brep/build6
-rw-r--r--brep/build.cxx3
-rw-r--r--brep/build.xml1
3 files changed, 6 insertions, 4 deletions
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 @@
<column name="package_version_release" type="TEXT" null="true"/>
<column name="state" type="TEXT" null="false"/>
<column name="timestamp" type="BIGINT" null="false"/>
+ <column name="forced" type="BOOLEAN" null="false"/>
<column name="status" type="TEXT" null="true"/>
<primary-key>
<column name="package_name"/>