Description of problem:
After "pkcon repo-enable <repository>" is used, "pkcon get-packages" stops working.
Version-Release number of selected component (if applicable):
PackageKit-0.9.4-1.fc22.x86_64 and PackageKit-debuginfo-0.9.3-1.fc21.x86_64
Steps to Reproduce:
1. Ensure that "pkcon get-packages" works (you'll get a list of packages).
2. Enable any currently disabled repository with "pkcon repo-enable" (rawhide in my case).
3. Run "pkcon get-packages" again.
pkcon produces following error:
Getting packages [=========================]
Loading cache [=========================]
Fatal error: Failed to ensure 0ad as source rawhide not found (0 sources loaded)
Second invocation of "pkcon get-packages" produces a list of packages.
Once the PackageKit service is restarted, it works again.
"dnf list", "dnf list available", "yum list available" all work and produce list of packages while pkcon doesn't.
It doesn't matter whether I use pkcon to enable/disable repositories. The same happens even with "yum-config-manager --enable <repo".
I saw the same issue on F21 today. Not only did "pkcon get-packages" fail, but also other pkcon commands. I might also have updated the enabled status of some repositories using an editor.
I think I've fixed the issue with these patches (awaiting review):
This bug appears to have been reported against 'rawhide' during the Fedora 22 development cycle.
Changing version to '22'.
More information and reason for this action is here:
The two fixes above have both landed in F22; closing the ticket.