Skip to content

Commit

Permalink
Merge pull request #5157 from cgwalters/err-discovered-other-repos
Browse files Browse the repository at this point in the history
core: List all other repos when we fail to find a repo
  • Loading branch information
cgwalters authored Nov 8, 2024
2 parents ce29f95 + 7319a87 commit b9c353b
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions src/libpriv/rpmostree-core.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -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<DnfRepo *> (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
Expand Down

0 comments on commit b9c353b

Please sign in to comment.