Stop the complete database before packaging or finishing qualification

This commit is contained in:
Дмитрий committed 2026-10-14 19:31:33 +05:00
1 parent 97c024d95c
commit 46785f7978
1 file changed
+2
+2
View File
@@ -120,6 +120,7 @@ pub fn compose_install(base: &Path, candidate: &Path, fixture: &Path, trusted_ke
"version": manifest.version, "core": manifest.core, "bots": manifest.bots,
"updateManifestSha256": fsx::sha256_bytes(&bytes),
}))?;
crate::mysql_snapshot::stop(&fixture)?;
fs::remove_file(fixture.join(MARKER))?;
Ok(())
}
@@ -143,6 +144,7 @@ pub fn qualify_install(package: &Path, fixture: &Path, trusted_key: &str) -> Res
let env = QualificationEnv(crate::update::RepackEnv { root: &fixture, meta_dir: &metadata });
env.validate()?;
env.ensure_stopped()?;
crate::mysql_snapshot::stop(&fixture)?;
if installed.version != manifest.version || crate::update::pending_checked(&metadata)?.is_some() {
return Err(Error::Invalid("Clean installation did not finish at the packaged release.".into()));
}