Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support local updates with the same version string #1027

Merged
merged 1 commit into from
Jan 13, 2025

Conversation

agners
Copy link
Collaborator

@agners agners commented Jan 9, 2025

For development it is sometimes useful to just reuse the same version string but increment the underlying build number (which is the actual version devices typically care about).

This change supports multiple local updates with the same version string, and updating to an explicit version by version integer.

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
For development it is sometimes useful to just reuse the same version
string but increment the underlying build number (which is the actual
version devices typically care about).

This change supports multiple local updates with the same version
string, and updating to an explicit version by version integer.
@agners agners added the new-feature New feature or request label Jan 9, 2025
@agners agners requested a review from marcelveldt January 13, 2025 12:13
@agners agners merged commit b1fa99e into main Jan 13, 2025
4 checks passed
@agners agners deleted the support-multiple-updates-with-same-version-string branch January 13, 2025 13:29
logger.info("Local updates found for this device")
if requested_software_version is None:
# Use integer version to reliably determine absolute latest version
versions = filter(
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A list comprehension is easier to read and faster.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
new-feature New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants