core: Do enumerate content objects in archive-z2 repositories

Prune has worked fine on bare repositories for some time, but now that
I finally try to delete data on the server side, I notice we weren't
actually enumerating content objects =/

That caused them to not be pruned.

https://bugzilla.gnome.org/show_bug.cgi?id=733458
This commit is contained in:
Colin Walters 2014-07-20 12:18:09 -04:00
parent 72da2e0c36
commit 1834a71b1f

View File

@ -1021,7 +1021,10 @@ list_loose_objects_at (OstreeRepo *self,
if (!dot)
continue;
if (strcmp (dot, ".file") == 0)
if ((self->mode == OSTREE_REPO_MODE_ARCHIVE_Z2
&& strcmp (dot, ".filez") == 0) ||
(self->mode == OSTREE_REPO_MODE_BARE
&& strcmp (dot, ".file") == 0))
objtype = OSTREE_OBJECT_TYPE_FILE;
else if (strcmp (dot, ".dirtree") == 0)
objtype = OSTREE_OBJECT_TYPE_DIR_TREE;