From: Colin Walters Date: Wed, 8 Jun 2022 20:22:26 +0000 (-0400) Subject: prune: Also use object set API in `ostree_repo_prune_from_reachable()` X-Git-Tag: archive/raspbian/2022.5-1+rpi1^2~9^2^2~31^2 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=fffb1116339933d62f25cfe033ca620a49239ae6;p=ostree.git prune: Also use object set API in `ostree_repo_prune_from_reachable()` I missed the second prune path when working on https://github.com/ostreedev/ostree/pull/2635 --- diff --git a/src/libostree/ostree-repo-prune.c b/src/libostree/ostree-repo-prune.c index ccd55782..da4f4284 100644 --- a/src/libostree/ostree-repo-prune.c +++ b/src/libostree/ostree-repo-prune.c @@ -508,10 +508,10 @@ ostree_repo_prune_from_reachable (OstreeRepo *self, if (!lock) return FALSE; - g_autoptr(GHashTable) objects = NULL; - - if (!ostree_repo_list_objects (self, OSTREE_REPO_LIST_OBJECTS_ALL | OSTREE_REPO_LIST_OBJECTS_NO_PARENTS, - &objects, cancellable, error)) + g_autoptr(GHashTable) objects = + ostree_repo_list_objects_set (self, OSTREE_REPO_LIST_OBJECTS_ALL | OSTREE_REPO_LIST_OBJECTS_NO_PARENTS, + cancellable, error); + if (!objects) return FALSE; return repo_prune_internal (self, objects, options, out_objects_total,