MCPcopy Create free account
hub / github.com/ScriptedAlchemy/tracedecay / mark_version_installed

Method mark_version_installed

src/user_config.rs:218–225  ·  view source on GitHub ↗

Marks `running` as fully installed by advancing both version markers, returning whether anything changed. This is the single home of the marker-advancement protocol: only a completed full agent install pass (the startup silent reinstall, or `post-update`'s reinstall step) may record its version here, so the next startup's maintenance knows the work does not need repeating.

(&mut self, running: &str)

Source from the content-addressed store, hash-verified

216 /// record its version here, so the next startup's maintenance knows the
217 /// work does not need repeating.
218 pub fn mark_version_installed(&mut self, running: &str) -> bool {
219 if self.previous_version == running && self.last_installed_version == running {
220 return false;
221 }
222 self.previous_version = running.to_string();
223 self.last_installed_version = running.to_string();
224 true
225 }
226}
227
228/// Parse a human-readable duration string like "15s" or "1m" into a Duration.

Callers 2

run_silent_reinstallFunction · 0.80
run_post_update_tasksFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected