diff options
Diffstat (limited to 'brep')
-rw-r--r-- | brep/build | 9 | ||||
-rw-r--r-- | brep/build.cxx | 6 | ||||
-rw-r--r-- | brep/build.xml | 2 |
3 files changed, 14 insertions, 3 deletions
@@ -104,7 +104,9 @@ namespace brep // 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); + build (string name, version, + string configuration, + string machine, string machine_summary); build_id id; @@ -126,6 +128,11 @@ namespace brep // optional<result_status> status; + // Present only if the state is 'testing' or 'tested'. + // + optional<string> machine; + optional<string> machine_summary; + // Note that the logs are stored as std::string/TEXT which is Ok since // they are UTF-8 and our database is UTF-8. // diff --git a/brep/build.cxx b/brep/build.cxx index 48235f5..d795ba6 100644 --- a/brep/build.cxx +++ b/brep/build.cxx @@ -33,14 +33,16 @@ namespace brep // build // build:: - build (string pnm, version pvr, string cfg) + build (string pnm, version pvr, string cfg, string mnm, string msm) : id (package_id (move (pnm), pvr), move (cfg)), package_name (id.package.name), package_version (move (pvr)), configuration (id.configuration), state (build_state::testing), timestamp (timestamp_type::clock::now ()), - forced (false) + forced (false), + machine (move (mnm)), + machine_summary (move (msm)) { } } diff --git a/brep/build.xml b/brep/build.xml index 2a222f4..8d9178a 100644 --- a/brep/build.xml +++ b/brep/build.xml @@ -13,6 +13,8 @@ <column name="timestamp" type="BIGINT" null="false"/> <column name="forced" type="BOOLEAN" null="false"/> <column name="status" type="TEXT" null="true"/> + <column name="machine" type="TEXT" null="true"/> + <column name="machine_summary" type="TEXT" null="true"/> <primary-key> <column name="package_name"/> <column name="package_version_epoch"/> |