From 2216c84ecadade36781320b1924830b075846f6e Mon Sep 17 00:00:00 2001 From: Juan RP Date: Sun, 29 Mar 2015 11:06:18 +0200 Subject: [PATCH] libxbps: continue updating all pkgs if xbps is uptodate. --- lib/transaction_ops.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/lib/transaction_ops.c b/lib/transaction_ops.c index 6d4ff445..46d129e8 100644 --- a/lib/transaction_ops.c +++ b/lib/transaction_ops.c @@ -247,9 +247,11 @@ xbps_transaction_update_packages(struct xbps_handle *xhp) xbps_dictionary_get_cstring_nocopy(pkgd, "pkgver", &pkgver); pkgname = xbps_pkg_name(pkgver); assert(pkgname); - rv = trans_find_pkg(xhp, pkgname, false, false); + if (trans_find_pkg(xhp, pkgname, false, false) == 0) { + free(pkgname); + return rv; + } free(pkgname); - return rv; } iter = xbps_dictionary_iterator(xhp->pkgdb);