auto_update: Tentatively prevent auto-update loop on Nightly again (#43670)

Release Notes:

- N/A
This commit is contained in:
Piotr Osiewicz 2025-11-27 15:08:43 +01:00 committed by GitHub
parent 02fbafcda6
commit c2281779af
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -639,10 +639,11 @@ impl AutoUpdater {
if let AutoUpdateStatus::Updated { version, .. } = status {
match version {
VersionCheckType::Sha(cached_version) => {
let should_download = parsed_fetched_version
.as_ref()
.ok()
.is_none_or(|version| version.build.as_str() != cached_version.full());
let should_download =
parsed_fetched_version.as_ref().ok().is_none_or(|version| {
version.build.as_str().rsplit('.').next()
!= Some(&cached_version.full())
});
let newer_version = should_download
.then(|| VersionCheckType::Sha(AppCommitSha::new(fetched_version)));
return Ok(newer_version);
@ -662,10 +663,9 @@ impl AutoUpdater {
.ok()
.flatten()
.map(|sha| {
parsed_fetched_version
.as_ref()
.ok()
.is_none_or(|version| version.build.as_str() != sha)
parsed_fetched_version.as_ref().ok().is_none_or(|version| {
version.build.as_str().rsplit('.').next() != Some(&sha)
})
})
.unwrap_or(true);
let newer_version = should_download