Summary: | Discover shows version as "Stable" for Flatpak packages even if release information with version numbers is available in AppStream | ||
---|---|---|---|
Product: | [Applications] Discover | Reporter: | Nate Graham <nate> |
Component: | Flatpak Backend | Assignee: | Aleix Pol <aleixpol> |
Status: | VERIFIED FIXED | ||
Severity: | normal | CC: | codestruct, jgrulich |
Priority: | NOR | ||
Version: | unspecified | ||
Target Milestone: | --- | ||
Platform: | Neon | ||
OS: | Linux | ||
Latest Commit: | https://commits.kde.org/discover/61f520f9cf1da96eeb16345d197f46ebef859eb3 | Version Fixed In: |
Description
Nate Graham
2018-01-14 17:03:08 UTC
After reading your blogpost, Nate, I tried the described Discover features and also noticed that the version is always "stable" for flathub packages. Looks like FlatpakResource::availableVersion() just returns the branch rather than even looking for a version string. We could *append* the branch, but we need the version too, to yield this: Version: 1.0.5 (stable) Git commit 61f520f9cf1da96eeb16345d197f46ebef859eb3 by Aleix Pol. Committed on 15/01/2018 at 01:53. Pushed by apol into branch 'master'. Extract the version number from the AppStream information M +10 -5 libdiscover/backends/FlatpakBackend/FlatpakResource.cpp https://commits.kde.org/discover/61f520f9cf1da96eeb16345d197f46ebef859eb3 Verified! |