This is a backport of PR #8909 as merged into main (2d660a1252c5c40333f0378ba485680426c33cd0).
SUMMARY
This pull request updates the Flatpak name parsing functionality to handle additional valid cases for Flatpak identifiers.
ISSUE TYPE
Feature Pull Request
COMPONENT NAME
flatpak
ADDITIONAL INFORMATION
While trying to install com.chatterino.chatterino from Flathub, I encountered a problem with the multiple versions of this package available: stable and nightly. To install it properly, it has to be the full name: app/com.chatterino.chatterino/x86_64/stable or com.chatterino.chatterino/x86_64/stable. But the module doesn't handle those names very well and tries to install the package even if it's already installed, returning changed instead of ok.
This is a backport of PR #8909 as merged into main (2d660a1252c5c40333f0378ba485680426c33cd0).
SUMMARY
This pull request updates the Flatpak name parsing functionality to handle additional valid cases for Flatpak identifiers.
ISSUE TYPE
COMPONENT NAME
flatpak
ADDITIONAL INFORMATION
While trying to install
com.chatterino.chatterino
from Flathub, I encountered a problem with the multiple versions of this package available:stable
andnightly
. To install it properly, it has to be the full name:app/com.chatterino.chatterino/x86_64/stable
orcom.chatterino.chatterino/x86_64/stable
. But the module doesn't handle those names very well and tries to install the package even if it's already installed, returningchanged
instead ofok
.All the names above are valid and return
ok
when running multiple times, with the changes.