xbps_repo_get_{virtual,}pkg: add debug on match.

This commit is contained in:
Juan RP 2020-02-24 10:22:15 +01:00
parent 58158f28c3
commit cc601e1e91
No known key found for this signature in database
GPG Key ID: AF19F6CB482F9368

View File

@ -416,6 +416,8 @@ xbps_repo_get_virtualpkg(struct xbps_repo *repo, const char *pkg)
if (!xbps_dictionary_set_cstring(pkgd, "pkgname", pkgname)) { if (!xbps_dictionary_set_cstring(pkgd, "pkgname", pkgname)) {
return NULL; return NULL;
} }
xbps_dbg_printf(repo->xhp, "%s: found %s\n", __func__, pkgver);
return pkgd; return pkgd;
} }
@ -454,6 +456,7 @@ add:
if (!xbps_dictionary_set_cstring(pkgd, "pkgname", pkgname)) { if (!xbps_dictionary_set_cstring(pkgd, "pkgname", pkgname)) {
return NULL; return NULL;
} }
xbps_dbg_printf(repo->xhp, "%s: found %s\n", __func__, pkgver);
return pkgd; return pkgd;
} }