From: Matthew Leeds Date: Sat, 9 Sep 2017 00:41:04 +0000 (-0700) Subject: lib/repo: Update outdated comment X-Git-Tag: archive/raspbian/2022.1-3+rpi1~1^2~4^2~32^2~17 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=9f78386819efb45f849467e99877528bac8c3666;p=ostree.git lib/repo: Update outdated comment Closes: #1157 Approved by: cgwalters --- diff --git a/src/libostree/ostree-repo.c b/src/libostree/ostree-repo.c index 93c6d62d..c0d4a8e7 100644 --- a/src/libostree/ostree-repo.c +++ b/src/libostree/ostree-repo.c @@ -4940,11 +4940,8 @@ ostree_repo_regenerate_summary (OstreeRepo *self, g_variant_new_uint64 (GUINT64_TO_BE (g_get_real_time () / G_USEC_PER_SEC))); } - /* Add refs which have a collection specified. ostree_repo_list_collection_refs() - * is guaranteed to only return refs which are in refs/mirrors, or those which - * are in refs/heads if the repository configuration specifies a collection ID - * (which we put in the main refs map, rather than the collection map, for - * backwards compatibility). */ + /* Add refs which have a collection specified, which could be in refs/mirrors, + * refs/heads, and/or refs/remotes. */ { g_autoptr(GHashTable) collection_refs = NULL; if (!ostree_repo_list_collection_refs (self, NULL, &collection_refs, @@ -4983,6 +4980,8 @@ ostree_repo_regenerate_summary (OstreeRepo *self, const char *collection_id = collection_iter->data; GHashTable *ref_map = g_hash_table_lookup (collection_map, collection_id); + /* We put the local repo's collection ID in the main refs map, rather + * than the collection map, for backwards compatibility. */ gboolean is_main_collection_id = (main_collection_id != NULL && g_str_equal (collection_id, main_collection_id)); if (!is_main_collection_id)