mirror of
https://github.com/ostreedev/ostree.git
synced 2024-12-23 21:35:26 +03:00
lib/repo-finder-config: Add some more debug output
This makes diagnosing false negatives a little easier. Signed-off-by: Philip Withnall <withnall@endlessm.com> Closes: #1075 Approved by: jlebon
This commit is contained in:
parent
d3a5d26176
commit
2522db0164
@ -114,6 +114,7 @@ ostree_repo_finder_config_resolve_async (OstreeRepoFinder *find
|
|||||||
g_autoptr(GHashTable) remote_refs = NULL; /* (element-type OstreeCollectionRef utf8) */
|
g_autoptr(GHashTable) remote_refs = NULL; /* (element-type OstreeCollectionRef utf8) */
|
||||||
const gchar *checksum;
|
const gchar *checksum;
|
||||||
g_autofree gchar *remote_collection_id = NULL;
|
g_autofree gchar *remote_collection_id = NULL;
|
||||||
|
gboolean resolved_a_ref = FALSE;
|
||||||
|
|
||||||
remote_name = remotes[i];
|
remote_name = remotes[i];
|
||||||
|
|
||||||
@ -147,6 +148,7 @@ ostree_repo_finder_config_resolve_async (OstreeRepoFinder *find
|
|||||||
* @supported_ref_to_checksum. */
|
* @supported_ref_to_checksum. */
|
||||||
g_debug ("Resolved ref (%s, %s) to remote ‘%s’.",
|
g_debug ("Resolved ref (%s, %s) to remote ‘%s’.",
|
||||||
refs[j]->collection_id, refs[j]->ref_name, remote_name);
|
refs[j]->collection_id, refs[j]->ref_name, remote_name);
|
||||||
|
resolved_a_ref = TRUE;
|
||||||
|
|
||||||
supported_ref_to_checksum = g_hash_table_lookup (repo_name_to_refs, remote_name);
|
supported_ref_to_checksum = g_hash_table_lookup (repo_name_to_refs, remote_name);
|
||||||
|
|
||||||
@ -162,6 +164,9 @@ ostree_repo_finder_config_resolve_async (OstreeRepoFinder *find
|
|||||||
(gpointer) refs[j], g_strdup (checksum));
|
(gpointer) refs[j], g_strdup (checksum));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (!resolved_a_ref)
|
||||||
|
g_debug ("Ignoring remote ‘%s’ due to it not advertising any of the requested refs.", remote_name);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Aggregate the results. */
|
/* Aggregate the results. */
|
||||||
|
Loading…
Reference in New Issue
Block a user