core: Add OSTREE_OBJECT_TYPE_COMMIT_META
This is cleaner than the loose_path_with_suffix approach Closes: #359 Approved by: cgwalters
This commit is contained in:
1 parent
55f5f73d80
commit
23049bbd01
6 files changed
+20
-43
No files matched your search
@@ -3120,8 +3120,7 @@ ostree_repo_delete_object (OstreeRepo *self,
|
||||
{
|
||||
char meta_loose[_OSTREE_LOOSE_PATH_MAX];
|
||||
|
||||
_ostree_loose_path_with_suffix (meta_loose, sha256,
|
||||
OSTREE_OBJECT_TYPE_COMMIT, self->mode, "meta");
|
||||
_ostree_loose_path (meta_loose, sha256, OSTREE_OBJECT_TYPE_COMMIT_META, self->mode);
|
||||
|
||||
do
|
||||
res = unlinkat (self->objects_dir_fd, meta_loose, 0);
|
||||
|
||||
Reference in new issue
Block a user