mirror of
https://github.com/ostreedev/ostree.git
synced 2025-03-19 22:50:35 +03:00
ostree_repo_read_commit_detached_metadata: Handle parent repo
If the detached metadata is not in the repo, try in the parent repo if that is set. Without this a commit will not gpg validate in the child repo Closes: #539 Approved by: giuseppe
This commit is contained in:
parent
cf6ec1bbbc
commit
d43c121675
@ -2044,6 +2044,12 @@ ostree_repo_read_commit_detached_metadata (OstreeRepo *self,
|
||||
goto out;
|
||||
}
|
||||
|
||||
if (ret_metadata == NULL && self->parent_repo)
|
||||
return ostree_repo_read_commit_detached_metadata (self->parent_repo,
|
||||
checksum,
|
||||
out_metadata,
|
||||
cancellable,
|
||||
error);
|
||||
ret = TRUE;
|
||||
ot_transfer_out_value (out_metadata, &ret_metadata);
|
||||
out:
|
||||
|
Loading…
x
Reference in New Issue
Block a user