getsolus / packages

Solus Package Monorepo & Issue Tracker
64 stars 85 forks source link

Bug: Discover does not update a flatpak when the source has changed #4202

Open TraceyC77 opened 2 weeks ago

TraceyC77 commented 2 weeks ago

I've discovered a problem with a flatpak that's had its metainfo / source change. I saw this with CudaText when it switched from Qt5 to Qt6.

Name CudaText Flatpak source Steps to Reproduce

  1. Install the deprecated version of CudaText:
    flatpak install io.github.cudatext.CudaText-Qt5
    Info: app io.github.cudatext.CudaText-Qt5 branch stable is end-of-life, in favor of io.github.cudatext.CudaText-Qt branch stable
    Replace? [Y/n]: n
    ...
    Proceed with these changes to the system installation? [Y/n]: y
  2. Open Discover. See an update for CudaText (Refresh of version 1.210.5)
  3. Click the Update All button

Expected Result CudaText is updated. The window shows no remaining software updates (or others, system state depending).

Actual Result The window blanks temporarily, and then shows CudaText with the same information.

Notes When I ran flatpak update it showed the source needing to be updated.

❯ flatpak update
Looking for updates…

Info: app io.github.cudatext.CudaText-Qt5 branch stable is end-of-life, in favor of io.github.cudatext.CudaText-Qt branch stable

Originally posted by @TraceyC77 in https://github.com/getsolus/packages/issues/716#issuecomment-2057897506

TraceyC77 commented 2 weeks ago

This happened today with GNOME and KDE flatpaks. As with CudaText, running the update with Discover failed, but from command line it was successful

image

flatpak cli output ```bash ❯ flatpak update Looking for updates… Info: runtime org.kde.Sdk branch 6.6 is end-of-life, with reason: We strongly recommend moving to the latest stable version of the Platform and SDK Info: applications using this runtime: io.github.JakubMelka.Pdf4qt Info: runtime org.kde.Platform branch 6.6 is end-of-life, with reason: We strongly recommend moving to the latest stable version of the Platform and SDK Info: applications using this runtime: io.github.cudatext.CudaText-Qt Info: runtime org.kde.Platform branch 5.15-22.08 is end-of-life, with reason: We strongly recommend moving to the latest Qt 5.15-based stable version of the Platform and SDK Info: applications using this runtime: com.symless.synergy Info: runtime org.gnome.Platform branch 45 is end-of-life, with reason: The GNOME 45 runtime is no longer supported as of September 18, 2024. Please ask your application developer to migrate to a supported platform. Info: applications using this runtime: io.github.quodlibet.QuodLibet Info: runtime org.freedesktop.Platform.VAAPI.Intel branch 22.08 is end-of-life, with reason: org.freedesktop.Platform 22.08 is no longer receiving fixes and security updates. Please update to a supported runtime version. Info: applications using this extension: com.symless.synergy Info: runtime org.freedesktop.Platform.GL.default branch 22.08-extra is end-of-life, with reason: org.freedesktop.Platform 22.08 is no longer receiving fixes and security updates. Please update to a supported runtime version. Info: applications using this extension: com.symless.synergy Info: runtime org.freedesktop.Platform.GL.default branch 22.08 is end-of-life, with reason: org.freedesktop.Platform 22.08 is no longer receiving fixes and security updates. Please update to a supported runtime version. Info: applications using this extension: com.symless.synergy ID Branch Op Remote Download 1. org.gnome.Platform.Locale 45 u flathub < 380.5 MB (partial) 2. org.gnome.Platform 45 u flathub < 382.2 MB 3. org.kde.Platform.Locale 6.6 u flathub < 392.4 MB (partial) 4. org.kde.Platform 6.6 u flathub < 334.4 MB 5. org.kde.Sdk.Locale 6.6 u flathub < 398.4 MB (partial) 6. org.kde.Sdk 6.6 u flathub < 844.8 MB Proceed with these changes to the system installation? [Y/n]: ```