Skip to content

Commit

Permalink
core: Add some more debugging and error info around repos
Browse files Browse the repository at this point in the history
To help debug coreos#4029
  • Loading branch information
cgwalters committed Jan 24, 2023
1 parent a33938a commit 7e5e813
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/libpriv/rpmostree-core.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -490,7 +490,7 @@ enable_one_repo (GPtrArray *sources, const char *reponame, GError **error)
return TRUE;
}

return glnx_throw (error, "Unknown rpm-md repository: %s", reponame);
return glnx_throw (error, "Unknown rpm-md repository: %s (discovered %u)", reponame, (guint)sources->len);
}

static void
Expand Down Expand Up @@ -716,6 +716,7 @@ rpmostree_context_setup (RpmOstreeContext *self, const char *install_root, const
/* NB: missing "repos" --> let libdnf figure it out for itself (we're likely doing a
* client-side compose where we want to use /etc/yum.repos.d/) */
auto repos = self->treefile_rs->get_repos ();
g_debug ("Found %u repos", (guint) repos.size());
if (!repos.empty ())
{
if (!disabled_all_repos)
Expand Down

0 comments on commit 7e5e813

Please sign in to comment.