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

@@ -32,7 +32,7 @@
int HIDDEN
xbps_transaction_store(struct xbps_handle *xhp, xbps_array_t pkgs,
xbps_dictionary_t pkgd, bool autoinst)
xbps_dictionary_t pkgd, const char *tract, bool autoinst)
{
xbps_array_t replaces;
const char *pkgver, *repo;
@@ -70,6 +70,9 @@ xbps_transaction_store(struct xbps_handle *xhp, xbps_array_t pkgs,
if (!xbps_array_add(pkgs, pkgd))
return EINVAL;
xbps_set_cb_state(xhp, XBPS_STATE_TRANS_ADDPKG, 0, pkgver,
"Found %s (%s) in repository %s", pkgver, tract, repo);
xbps_dbg_printf(xhp, "Added `%s' into the dependency list (%s)\n",
pkgver, repo);