lib/repo: Reindent some code in regenerate_summary() for clarity
This makes it a bit more easily separable from the rest of the code in the function. No functional changes. Signed-off-by: Philip Withnall <withnall@endlessm.com> Closes: #911 Approved by: cgwalters
This commit is contained in:
parent
0c4b3a2b6d
commit
12479d8b05
|
|
@ -4476,14 +4476,15 @@ ostree_repo_regenerate_summary (OstreeRepo *self,
|
||||||
GCancellable *cancellable,
|
GCancellable *cancellable,
|
||||||
GError **error)
|
GError **error)
|
||||||
{
|
{
|
||||||
g_autoptr(GHashTable) refs = NULL;
|
|
||||||
if (!ostree_repo_list_refs (self, NULL, &refs, cancellable, error))
|
|
||||||
return FALSE;
|
|
||||||
|
|
||||||
g_auto(GVariantDict) additional_metadata_builder = OT_VARIANT_BUILDER_INITIALIZER;
|
g_auto(GVariantDict) additional_metadata_builder = OT_VARIANT_BUILDER_INITIALIZER;
|
||||||
g_variant_dict_init (&additional_metadata_builder, additional_metadata);
|
g_variant_dict_init (&additional_metadata_builder, additional_metadata);
|
||||||
g_autoptr(GVariantBuilder) refs_builder = g_variant_builder_new (G_VARIANT_TYPE ("a(s(taya{sv}))"));
|
g_autoptr(GVariantBuilder) refs_builder = g_variant_builder_new (G_VARIANT_TYPE ("a(s(taya{sv}))"));
|
||||||
|
|
||||||
|
{
|
||||||
|
g_autoptr(GHashTable) refs = NULL;
|
||||||
|
if (!ostree_repo_list_refs (self, NULL, &refs, cancellable, error))
|
||||||
|
return FALSE;
|
||||||
|
|
||||||
g_autoptr(GList) ordered_keys = g_hash_table_get_keys (refs);
|
g_autoptr(GList) ordered_keys = g_hash_table_get_keys (refs);
|
||||||
ordered_keys = g_list_sort (ordered_keys, (GCompareFunc)strcmp);
|
ordered_keys = g_list_sort (ordered_keys, (GCompareFunc)strcmp);
|
||||||
|
|
||||||
|
|
@ -4523,7 +4524,7 @@ ostree_repo_regenerate_summary (OstreeRepo *self,
|
||||||
ostree_checksum_to_bytes_v (commit),
|
ostree_checksum_to_bytes_v (commit),
|
||||||
g_variant_dict_end (&commit_metadata_builder)));
|
g_variant_dict_end (&commit_metadata_builder)));
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
{
|
{
|
||||||
g_autoptr(GPtrArray) delta_names = NULL;
|
g_autoptr(GPtrArray) delta_names = NULL;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue