Error when enabling a disabled Flatpak repository
Description of problem:
It is not possible to enable a disabled Flatpak repository using GNOME Software. For example, the fedora-testing one, but I also tried disabling Flathub, GNOME and other repos and there was the same issue when trying to enable them in GS. See this screenshot:
I tried this on multiple older GS versions and it seems that it actually never worked. The problem seems to be with GS trying to add the Flatpak repo instead of enabling it which fails because the repo already exists, it's just disabled.
Version-Release number of selected component (if applicable):
gnome-software-3.32.4-2.fc31.x86_64 (and latest gnome-software from Git master)
flatpak-1.4.2-4.fc31.x86_64
How reproducible:
Every time.
Steps to Reproduce:
- Use fully updated Fedora Rawhide.
- Run GNOME Software, Software Repositories and try to enable the fedora-testing repo.
Actual results:
"flatpak source fedora-testing already exists" error is displayed and repo is not enabled.
Expected results:
Repo is enabled.
Additional info:
11:10:13:0377 Gs enabling repo fedora-testing
11:10:13:0459 Gs system/flatpak/*/source/fedora-testing/* is not an actual app
11:10:13:0476 Gs running install with dedupe-flags=7 with refine-flags=require-setup-action,require-origin with interactive=True with timeout=60 on plugin=rpm-ostree on apps system/flatpak/*/source/fedora-testing/* took 98ms
11:10:13:0483 Gs finished install repo fedora-testing