trans_find_pkg(): search for reverts match with correct pkgver

This commit is contained in:
Enno Boland 2014-09-28 22:17:33 +02:00
parent 2711b07b77
commit 42f0152dce

View File

@ -118,7 +118,7 @@ trans_find_pkg(struct xbps_handle *xhp, const char *pkg, bool reinstall)
xbps_dictionary_get_cstring_nocopy(pkg_pkgdb,
"pkgver", &instpkgver);
if (xbps_cmpver(repopkgver, instpkgver) <= 0 &&
!xbps_pkg_reverts(pkg_repod, repopkgver)) {
!xbps_pkg_reverts(pkg_repod, instpkgver)) {
xbps_dbg_printf(xhp, "[rpool] Skipping `%s' "
"(installed: %s) from repository `%s'\n",
repopkgver, instpkgver, repoloc);