packagekit: Update package installed check to use new manual and auto statuses
This cherry-picks a commit made in Ubuntu's community store-repo Community/Ubuntu/gnome-software@fe4703a9
The apt backend replaced the "installed" status with "auto" or "manual" in: https://github.com/PackageKit/PackageKit/commit/cfd297aeb51bde67269d74c5a762634314e918b6
Without this change using when using PackageKit >= 1.2.5 .deb packages are not able to be uninstalled.
Fixes #1720 (closed) but for the gnome-41 oldstable branch.
I have tested this on ubuntu 22.04 which has in its repos the GNOME 41 version of gnome-software.
Testing included:
- installing VLC from the deb repo
- uninstalling VLC via the GS delete ICON
- installing VLC from the flatpack repo
- uninstalling VLC via the GS delete ICON