From 42f0152dce60a19a799a8effbf54af0ba895a941 Mon Sep 17 00:00:00 2001 From: Enno Boland Date: Sun, 28 Sep 2014 22:17:33 +0200 Subject: [PATCH] trans_find_pkg(): search for reverts match with correct pkgver --- lib/transaction_ops.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/transaction_ops.c b/lib/transaction_ops.c index 63e6edf4..d3d30ccb 100644 --- a/lib/transaction_ops.c +++ b/lib/transaction_ops.c @@ -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);