aboutsummaryrefslogtreecommitdiff
path: root/clean/clean.cxx
diff options
context:
space:
mode:
authorKaren Arutyunov <karen@codesynthesis.com>2020-03-18 22:17:49 +0300
committerKaren Arutyunov <karen@codesynthesis.com>2020-03-27 17:28:44 +0300
commit35359f038f571dc46de3d14af72a2bc911fb0a24 (patch)
treede3e89d678e78b9efc4d395274fd7ccc68f4a213 /clean/clean.cxx
parent8ad672cc7211952716ffe1fbf76c179b4f1149e3 (diff)
Implement brep-monitor
Diffstat (limited to 'clean/clean.cxx')
-rw-r--r--clean/clean.cxx10
1 files changed, 8 insertions, 2 deletions
diff --git a/clean/clean.cxx b/clean/clean.cxx
index d7a7731..5401ab1 100644
--- a/clean/clean.cxx
+++ b/clean/clean.cxx
@@ -111,8 +111,8 @@ namespace brep
ops.db_port (),
"options='-c default_transaction_isolation=serializable'");
- // Prevent several brep-clean/migrate instances from updating build
- // database simultaneously.
+ // Prevent several brep utility instances from updating the database
+ // simultaneously.
//
database_lock l (db);
@@ -316,6 +316,12 @@ namespace brep
? i->second
: default_timeout);
+ // @@ Note that this approach doesn't consider the case when both
+ // the configuration and the package still exists but the package
+ // now excludes the configuration (configuration is now of the
+ // legacy class instead of the default class, etc). We should
+ // probably re-implement it in a way brep-monitor does it.
+ //
bool cleanup (
// Check that the build is not stale.
//