From 7319a87c755341446a4110ca799c77a7b3757a03 Mon Sep 17 00:00:00 2001 From: Colin Walters Date: Thu, 7 Nov 2024 18:18:00 -0500 Subject: [PATCH] core: List all other repos when we fail to find a repo So it's more obvious in complex CI environments what the repositories are. Signed-off-by: Colin Walters --- src/libpriv/rpmostree-core.cxx | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/src/libpriv/rpmostree-core.cxx b/src/libpriv/rpmostree-core.cxx index 2edb5938c2..aa59ff0bec 100644 --- a/src/libpriv/rpmostree-core.cxx +++ b/src/libpriv/rpmostree-core.cxx @@ -497,8 +497,15 @@ enable_one_repo (GPtrArray *sources, const char *reponame, GError **error) return TRUE; } - return glnx_throw (error, "Unknown rpm-md repository: %s (discovered %u)", reponame, - (guint)sources->len); + // Print out all repositories so it's more debugabble what may have happened + g_printerr ("Discovered rpm-md repositories:\n"); + for (guint i = 0; i < sources->len; i++) + { + auto src = static_cast (sources->pdata[i]); + const char *id = dnf_repo_get_id (src); + g_printerr ("- %s\n", id); + } + return glnx_throw (error, "Unknown rpm-md repository: %s", reponame); } static void