mirror of
https://github.com/ostreedev/ostree.git
synced 2025-03-19 22:50:35 +03:00
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:
parent
72da2e0c36
commit
1834a71b1f
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user