From 0f6977327313944bea0613ee74fafc94bdcceef4 Mon Sep 17 00:00:00 2001 From: Juan RP Date: Fri, 21 Jun 2019 13:14:24 +0200 Subject: [PATCH] lib/transaction_ops.c: more debug. --- lib/transaction_ops.c | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/lib/transaction_ops.c b/lib/transaction_ops.c index 3399c92a..4c5e71a8 100644 --- a/lib/transaction_ops.c +++ b/lib/transaction_ops.c @@ -322,6 +322,7 @@ xbps_transaction_update_packages(struct xbps_handle *xhp) pkgname = xbps_pkg_name(pkgver); assert(pkgname); rv = trans_find_pkg(xhp, pkgname, false, hold); + xbps_dbg_printf(xhp, "%s: trans_find_pkg %s: %d\n", __func__, pkgver, rv); if (rv == 0) { newpkg_found = true; } else if (rv == ENOENT || rv == EEXIST || rv == ENODEV) { @@ -368,10 +369,13 @@ xbps_transaction_update_pkg(struct xbps_handle *xhp, const char *pkg) assert(curpkgn); rv = trans_find_pkg(xhp, curpkgn, false, false); free(curpkgn); + xbps_dbg_printf(xhp, "%s: trans_find_pkg %s: %d\n", __func__, curpkgver, rv); if (rv && rv != ENOENT && rv != EEXIST && rv != ENODEV) return rv; } - return trans_find_pkg(xhp, pkg, false, false); + rv = trans_find_pkg(xhp, pkg, false, false); + xbps_dbg_printf(xhp, "%s: trans_find_pkg %s: %d\n", __func__, pkg, rv); + return rv; } int @@ -404,10 +408,13 @@ xbps_transaction_install_pkg(struct xbps_handle *xhp, const char *pkg, assert(curpkgn); rv = trans_find_pkg(xhp, curpkgn, false, false); free(curpkgn); + xbps_dbg_printf(xhp, "%s: trans_find_pkg %s: %d\n", __func__, curpkgver, rv); if (rv && rv != ENOENT && rv != EEXIST && rv != ENODEV) return rv; } - return trans_find_pkg(xhp, pkg, reinstall, false); + rv = trans_find_pkg(xhp, pkg, reinstall, false); + xbps_dbg_printf(xhp, "%s: trans_find_pkg %s: %d\n", __func__, pkg, rv); + return rv; } int