From 598022a60b1625e344915e9aa01a129c12a7cfef Mon Sep 17 00:00:00 2001 From: Juan RP Date: Sat, 13 Sep 2014 12:21:49 +0200 Subject: [PATCH] xbps_transaction_commit: add more debugging to know the unconfigured pkg reason. --- lib/transaction_commit.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/lib/transaction_commit.c b/lib/transaction_commit.c index 976a6610..be2a66f3 100644 --- a/lib/transaction_commit.c +++ b/lib/transaction_commit.c @@ -362,12 +362,14 @@ xbps_transaction_commit(struct xbps_handle *xhp) xbps_set_cb_state(xhp, XBPS_STATE_TRANS_CONFIGURE, 0, NULL, NULL); while ((obj = xbps_object_iterator_next(iter)) != NULL) { + xbps_dictionary_get_cstring_nocopy(obj, "pkgver", &pkgver); xbps_dictionary_get_cstring_nocopy(obj, "transaction", &tract); if ((strcmp(tract, "remove") == 0) || - (strcmp(tract, "configure") == 0)) + (strcmp(tract, "configure") == 0)) { + xbps_dbg_printf(xhp, "%s: skipping configuration for " + "%s: %s\n", __func__, pkgver, tract); continue; - - xbps_dictionary_get_cstring_nocopy(obj, "pkgver", &pkgver); + } update = false; if (strcmp(tract, "update") == 0) update = true;