mirror of
https://github.com/zed-industries/zed.git
synced 2026-06-01 03:14:56 +07:00
auto_update: Tentatively prevent auto-update loop on Nightly again (#43670)
Release Notes: - N/A
This commit is contained in:
parent
02fbafcda6
commit
c2281779af
1 changed files with 8 additions and 8 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue