From b73fb671797b34b30e21b97453b97e590384337d Mon Sep 17 00:00:00 2001 From: Juan RP Date: Sat, 12 Jul 2014 09:40:07 +0200 Subject: [PATCH] lib/repo_pkgdeps.c: print what dep has been added from repos (debug). --- lib/repo_pkgdeps.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/repo_pkgdeps.c b/lib/repo_pkgdeps.c index ca08d169..412c92f6 100644 --- a/lib/repo_pkgdeps.c +++ b/lib/repo_pkgdeps.c @@ -36,6 +36,7 @@ store_dependency(struct xbps_handle *xhp, xbps_dictionary_t repo_pkgd, pkg_state_t repo_pkg_state) { + const char *pkgver; int rv; /* * Overwrite package state in dictionary with same state than the @@ -52,7 +53,8 @@ store_dependency(struct xbps_handle *xhp, * Add the dictionary into the unsorted queue. */ xbps_array_add(unsorted, repo_pkgd); - xbps_dbg_printf_append(xhp, " (added)\n"); + xbps_dictionary_get_cstring_nocopy(repo_pkgd, "pkgver", &pkgver); + xbps_dbg_printf_append(xhp, " (added %s)\n", pkgver); return 0; }