Apps from flatpakrefs cannot be installed if they contain a repo that already exist
Description of problem:
If you try to install a flatpakref that contains a Flatpak repo (for example all apps from the Flathub.org website), it is installed only if the repo doesn't already exist on the system. If it exists, GS shows a Unable to install Foo as runtime "bar" not available
(replace foo with the app name and bar with the repo name) error message and aborts the installation. See this screenshot. Also, if I run flatpak remotes
afterwards, there is a new repo with a foo-origin
(for example com.spotify.Client-origin
) name added.
Version-Release number of selected component (if applicable):
gnome-software-3.30.5-1.fc29.x86_64
How reproducible:
Every time.
Steps to Reproduce:
- Use latest, fully updated, Fedora 29 (or Ubuntu 18.10) with GS 3.30.
- Install https://flathub.org/apps/details/org.gimp.GIMP using GNOME Software.
- Install https://flathub.org/apps/details/com.spotify.Client using GNOME Software.
Actual results:
Only the first app is installed. When trying to install the second app, the Unable to install Spotify as runtime "dl.flathub.org" not available
error is shown instead and installation is aborted. Also, a repo with name com.spotify.Client-origin
seems to be added.
Expected results:
Both apps are installed without any issue. The existing flathub
repo is ignored (because it is already present on the system) when installing the second app.
Additional info:
11:17:03:0082 Gs not handling error not-supported for action refine: failed to get state: runtime/org.freedesktop.Platform/x86_64/18.08 not found in any remote
...
11:17:18:0141 Gs found origin user/flatpak/com.spotify.Client-origin/desktop/com.spotify.Client.desktop/stable in error
11:17:18:0142 Gs searching appstream for user/flatpak/com.spotify.Client-origin/desktop/com.spotify.Client.desktop/stable
11:17:18:0143 Gs no app with ID user/flatpak/com.spotify.Client-origin/desktop/com.spotify.Client.desktop/stable found in system appstream
11:17:18:0144 Gs no AppStream match for {pkgname} app/com.spotify.Client/x86_64/stable