From cc601e1e9148d7e7ae9e5fb022f32dd07bb2e3a8 Mon Sep 17 00:00:00 2001 From: Juan RP Date: Mon, 24 Feb 2020 10:22:15 +0100 Subject: [PATCH] xbps_repo_get_{virtual,}pkg: add debug on match. --- lib/repo.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/repo.c b/lib/repo.c index acf2f295..91fcfb7a 100644 --- a/lib/repo.c +++ b/lib/repo.c @@ -416,6 +416,8 @@ xbps_repo_get_virtualpkg(struct xbps_repo *repo, const char *pkg) if (!xbps_dictionary_set_cstring(pkgd, "pkgname", pkgname)) { return NULL; } + xbps_dbg_printf(repo->xhp, "%s: found %s\n", __func__, pkgver); + return pkgd; } @@ -454,6 +456,7 @@ add: if (!xbps_dictionary_set_cstring(pkgd, "pkgname", pkgname)) { return NULL; } + xbps_dbg_printf(repo->xhp, "%s: found %s\n", __func__, pkgver); return pkgd; }