hif_context_install: revert back to all arches
hif_context_install: revert back to all arches

This is mostly a revert of commit 2f68fea (#50) with two modifications:
  1. use hy_query_filter_latest() instead of hy_query_latest_by_arch()
  2. just pick the first pkg if multiple packages have the same version

The issue that #50 introduced is that multiple packages can be returned,
not necessarily of the same NEVR. Since we just picked whatever the
first package in the array was, we would sometimes be choosing older
packages.

Now, with hy_query_filter_latest(), we just always pick the latest NEVR,
regardless of the arch (so it should still cover cases where a pkg goes
from noarch to not noarch).

Resolves: #120

Closes: #121
Approved by: ignatenkobrain

rpm-software-management/libhif,rpm-software-management/libdnf,edynox/libdnf,edynox/libdnf,edynox/libdnf,Conan-Kudo/libhif,hughsie/libhif,rpm-software-management/libhif,rpm-software-management/libhif,Conan-Kudo/libhif,rpm-software-management/libdnf,rpm-software-management/libhif,rpm-software-management/libdnf,edynox/libdnf,hughsie/libhif,hughsie/libhif,hughsie/libhif,Conan-Kudo/libhif,Conan-Kudo/libhif,rpm-software-management/libdnf