Merge pull request #2637 from cgwalters/opt-prune-reachable-too
prune: Also use object set API in `ostree_repo_prune_from_reachable()`
This commit is contained in:
commit
b330f84172
|
|
@ -508,10 +508,10 @@ ostree_repo_prune_from_reachable (OstreeRepo *self,
|
||||||
if (!lock)
|
if (!lock)
|
||||||
return FALSE;
|
return FALSE;
|
||||||
|
|
||||||
g_autoptr(GHashTable) objects = NULL;
|
g_autoptr(GHashTable) objects =
|
||||||
|
ostree_repo_list_objects_set (self, OSTREE_REPO_LIST_OBJECTS_ALL | OSTREE_REPO_LIST_OBJECTS_NO_PARENTS,
|
||||||
if (!ostree_repo_list_objects (self, OSTREE_REPO_LIST_OBJECTS_ALL | OSTREE_REPO_LIST_OBJECTS_NO_PARENTS,
|
cancellable, error);
|
||||||
&objects, cancellable, error))
|
if (!objects)
|
||||||
return FALSE;
|
return FALSE;
|
||||||
|
|
||||||
return repo_prune_internal (self, objects, options, out_objects_total,
|
return repo_prune_internal (self, objects, options, out_objects_total,
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue