lib/repo: Update outdated comment
authorMatthew Leeds <matthew.leeds@endlessm.com>
Sat, 9 Sep 2017 00:41:04 +0000 (17:41 -0700)
committerAtomic Bot <atomic-devel@projectatomic.io>
Sat, 9 Sep 2017 10:47:07 +0000 (10:47 +0000)
Closes: #1157
Approved by: cgwalters

src/libostree/ostree-repo.c

index 93c6d62dba6cebbd832ddc06a20acf78d119a852..c0d4a8e720135207eec44e47e20f7b61eca8cc43 100644 (file)
@@ -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)