Skip to content

fix(updater): backport #9406 — respect autoUpdateCheck in Sparkle background checks#9705

Merged
mgallien merged 1 commit into
nextcloud:stable-4.0from
pedromdbl:fix/backport-9406-sparkle-auto-update-check
Mar 31, 2026
Merged

fix(updater): backport #9406 — respect autoUpdateCheck in Sparkle background checks#9705
mgallien merged 1 commit into
nextcloud:stable-4.0from
pedromdbl:fix/backport-9406-sparkle-auto-update-check

Conversation

@pedromdbl
Copy link
Copy Markdown

Summary

Backport of #9406 to stable-4.0.

  • backgroundUpdateChecksAllowed now checks both !config.skipUpdateCheck() and config.autoUpdateCheck() before allowing Sparkle background update checks
  • backgroundCheckForUpdate() now uses config.autoUpdateCheck() instead of !ConfigFile().skipUpdateCheck()

Without this fix, the Sparkle update dialog reappears daily on macOS even after the user clicks "Install Update", because the delegate creates an inconsistency in Sparkle 2's state management by not properly consulting the auto-update configuration.

Fixes #9704

Test plan

  • Verify that disabling "Automatically check for updates" stops the Sparkle background update dialog
  • Verify that with auto-update enabled, the update flow works correctly
  • Verify that skipUpdateCheck in nextcloud.cfg still prevents all update checks

@i2h3
Copy link
Copy Markdown
Collaborator

i2h3 commented Mar 30, 2026

@pedromdbl You need to rebase and correct your sign-off line which contains the wrong mail address. Otherwise this is fine. 🙂

…ecks

Backport of nextcloud#9406 to stable-4.0.

The backgroundUpdateChecksAllowed delegate method only checked
skipUpdateCheck() but ignored autoUpdateCheck(), causing Sparkle
background update checks to always run regardless of the user's
auto-update preference. This led to the update dialog appearing
daily even after clicking "Install Update", as Sparkle's internal
state machine became inconsistent.

Similarly, backgroundCheckForUpdate() used !skipUpdateCheck()
instead of autoUpdateCheck().

Fixes nextcloud#9704

Signed-off-by: Pedro Lino <pmdbl@sapo.pt>
@mgallien mgallien force-pushed the fix/backport-9406-sparkle-auto-update-check branch from 3957536 to 476f1b0 Compare March 31, 2026 08:55
@github-actions
Copy link
Copy Markdown

Artifact containing the AppImage: nextcloud-appimage-pr-9705.zip

Digest: sha256:f060ba7106ec2a0689af758ece3eaba424733e8264f81c03bb7d9df37cba89e8

To test this change/fix you can download the above artifact file, unzip it, and run it.

Please make sure to quit your existing Nextcloud app and backup your data.

@mgallien mgallien merged commit eea0707 into nextcloud:stable-4.0 Mar 31, 2026
17 of 19 checks passed
@pedromdbl pedromdbl deleted the fix/backport-9406-sparkle-auto-update-check branch March 31, 2026 16:52
@github-actions
Copy link
Copy Markdown

Hello there,
Thank you so much for taking the time and effort to create a pull request to our Nextcloud project.

We hope that the review process is going smooth and is helpful for you. We want to ensure your pull request is reviewed to your satisfaction. If you have a moment, our community management team would very much appreciate your feedback on your experience with this PR review process.

Your feedback is valuable to us as we continuously strive to improve our community developer experience. Please take a moment to complete our short survey by clicking on the following link: https://cloud.nextcloud.com/apps/forms/s/i9Ago4EQRZ7TWxjfmeEpPkf6

Thank you for contributing to Nextcloud and we hope to hear from you soon!

(If you believe you should not receive this message, you can add yourself to the blocklist.)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants