| Summary: | Support 'short' format for classic ostree ref, omitting the remote (default) | ||
|---|---|---|---|
| Product: | [Applications] Discover | Reporter: | Timothée Ravier <tim> |
| Component: | rpm-ostree Backend | Assignee: | Plasma Bugs List <plasma-bugs-null> |
| Status: | RESOLVED FIXED | ||
| Severity: | minor | CC: | aleixpol, mariamfahmy66, travier |
| Priority: | NOR | ||
| Version First Reported In: | master | ||
| Target Milestone: | --- | ||
| Platform: | Fedora RPMs | ||
| OS: | Linux | ||
| Latest Commit: | https://invent.kde.org/plasma/discover/-/commit/b4e9b6b3fe1c8820670cc0620db9860c75021aee | Version Fixed/Implemented In: | |
| Sentry Crash Report: | |||
|
Description
Timothée Ravier
2023-12-20 10:07:30 UTC
Copied from chat to preserver history: We need a new branch in the Classic case: https://invent.kde.org/plasma/discover/-/blob/master/libdiscover/backends/RpmOstreeBackend/OstreeFormat.cpp?ref_type=heads#L21 Then we need to add the logic to figure out what the default remote is otherwise it's going to fail later. Another short term workaround (as we're the only users of this code) is to hardcode "fedora" as origin if it's not there. It's what's done already in some other places. Git commit d590508957e20982f451238cbfa51a6f54674353 by Timothée Ravier, on behalf of Tushar Hero. Committed on 22/12/2023 at 12:28. Pushed by ravier into branch 'merge-requests/723/head'. rpm-ostree: Add additional case for classic ostree image format See: https://bugs.kde.org/show_bug.cgi?id=478759 M +16 -6 libdiscover/backends/RpmOstreeBackend/OstreeFormat.cpp https://invent.kde.org/plasma/discover/-/commit/d590508957e20982f451238cbfa51a6f54674353 A possibly relevant merge request was started @ https://invent.kde.org/plasma/discover/-/merge_requests/725 A possibly relevant merge request was started @ https://invent.kde.org/plasma/discover/-/merge_requests/958 Git commit b4e9b6b3fe1c8820670cc0620db9860c75021aee by Timothée Ravier. Committed on 17/10/2024 at 08:17. Pushed by ravier into branch 'master'. rpm-ostree: Gracefully handle unknown ostree refs formats In some unusual setups (reference imported locally or unencapsulated from a container), we may not have an origin for the ostree commits. Handle that gracefully and do not trigger any update checks as those won't make sense nor succeed. See: - https://invent.kde.org/plasma/discover/-/merge_requests/723 - https://invent.kde.org/plasma/discover/-/merge_requests/725 M +5 -1 libdiscover/backends/RpmOstreeBackend/OstreeFormat.cpp M +8 -0 libdiscover/backends/RpmOstreeBackend/RpmOstreeBackend.cpp https://invent.kde.org/plasma/discover/-/commit/b4e9b6b3fe1c8820670cc0620db9860c75021aee |