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;
|
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;
|
ret = TRUE;
|
||||||
ot_transfer_out_value (out_metadata, &ret_metadata);
|
ot_transfer_out_value (out_metadata, &ret_metadata);
|
||||||
out:
|
out:
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue