Skip to content

Conversation

@nikclayton
Copy link
Contributor

The F-Droid API can return a suggestedVersionCode that F-Droid has not successfully built (e.g., there was a network issue preventing F-Droid from fetching the source code at the time of the last build).

This meant users were being prompted to update when there was not a built package to update to.

Fix this by verifying that suggestedVersionCode appears in the list of packages. If it doesn't then fall back to the highest version code in the list of packages.

Fixes #684

The F-Droid API can return a `suggestedVersionCode` that F-Droid has
not successfully built (e.g., there was a network issue preventing
F-Droid from fetching the source code at the time of the last build).

This meant users were being prompted to update when there was not a
built package to update to.

Fix this by verifying that `suggestedVersionCode` appears in the list of
packages. If it doesn't then fall back to the highest version code in
the list of packages.

Fixes #684
@nikclayton nikclayton merged commit 61afde8 into main May 30, 2024
@nikclayton nikclayton deleted the 684-fdroid-update branch May 30, 2024 11:49
nikclayton added a commit to nikclayton/pachli-android that referenced this pull request Jun 10, 2024
The F-Droid API can return a `suggestedVersionCode` that F-Droid has not
successfully built (e.g., there was a network issue preventing F-Droid
from fetching the source code at the time of the last build).

This meant users were being prompted to update when there was not a
built package to update to.

Fix this by verifying that `suggestedVersionCode` appears in the list of
packages. If it doesn't then fall back to the highest version code in
the list of packages.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

App tells me there is a new version on F-Droid when there isn't

2 participants