libxbps: print in verbose mode what pkgs are added to the transaction.

Useful to know why a transaction cannot be completed when there are
unresolved reverse dependencies.

Requested by @chris2.
This commit is contained in:
Juan RP
2015-09-02 18:56:20 +02:00
parent 0f2543a650
commit 8081751f86
6 changed files with 16 additions and 8 deletions

View File

@@ -65,6 +65,10 @@ state_cb(const struct xbps_state_cb_data *xscd, void *cbdata _unused)
case XBPS_STATE_REPOSYNC:
printf("[*] Updating `%s' ...\n", xscd->arg);
break;
case XBPS_STATE_TRANS_ADDPKG:
if (xscd->xhp->flags & XBPS_FLAG_VERBOSE)
printf("%s\n", xscd->desc);
break;
case XBPS_STATE_VERIFY:
printf("%s\n", xscd->desc);
break;