apps: Prefer installed metadata over repository metadata
apps: Prefer installed metadata over repository metadata

Usually these two are the same, but if they differ and the package is
installed, it's confusing to show something that doesn't apply to the
installed version.

Also, repository metadata might not have an icon while the installed
metadata has, and with this change, we see that icon.

Closes #9101
SotolitoLabs/cockpit,mvollmer/cockpit,stefwalter/cockpit,mareklibra/cockpit,stefwalter/cockpit,stefwalter/cockpit,cockpituous/cockpit,stefwalter/cockpit,mvollmer/cockpit,moraleslazaro/cockpit,andreasn/cockpit,mareklibra/cockpit,martinpitt/cockpit,SotolitoLabs/cockpit,SotolitoLabs/cockpit,stefwalter/cockpit,cockpituous/cockpit,cockpit-project/cockpit,garrett/cockpit,moraleslazaro/cockpit,moraleslazaro/cockpit,cockpit-project/cockpit,moraleslazaro/cockpit,cockpituous/cockpit,martinpitt/cockpit,garrett/cockpit,moraleslazaro/cockpit,mvollmer/cockpit,SotolitoLabs/cockpit,moraleslazaro/cockpit,andreasn/cockpit,martinpitt/cockpit,deryni/cockpit,mareklibra/cockpit,stefwalter/cockpit,deryni/cockpit,martinpitt/cockpit,SotolitoLabs/cockpit,mareklibra/cockpit,deryni/cockpit,garrett/cockpit,cockpituous/cockpit,deryni/cockpit,andreasn/cockpit,stefwalter/cockpit,cockpit-project/cockpit,deryni/cockpit,moraleslazaro/cockpit,cockpit-project/cockpit,deryni/cockpit,cockpituous/cockpit,mvollmer/cockpit,deryni/cockpit,andreasn/cockpit,martinpitt/cockpit,SotolitoLabs/cockpit,andreasn/cockpit,mareklibra/cockpit,garrett/cockpit,mvollmer/cockpit,mareklibra/cockpit,andreasn/cockpit,SotolitoLabs/cockpit,garrett/cockpit,cockpituous/cockpit,andreasn/cockpit,cockpit-project/cockpit,mareklibra/cockpit