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
@@ -2058,8 +2058,7 @@ _ostree_repo_get_commit_metadata_loose_path (OstreeRepo *self,
|
||||
const char *checksum)
|
||||
{
|
||||
char buf[_OSTREE_LOOSE_PATH_MAX];
|
||||
_ostree_loose_path_with_suffix (buf, checksum, OSTREE_OBJECT_TYPE_COMMIT, self->mode,
|
||||
"meta");
|
||||
_ostree_loose_path (buf, checksum, OSTREE_OBJECT_TYPE_COMMIT_META, self->mode);
|
||||
return g_file_resolve_relative_path (self->objects_dir, buf);
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user