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:
Alexander Larsson 2016-10-21 10:13:54 +02:00 committed by Atomic Bot
parent cf6ec1bbbc
commit d43c121675

View File

@ -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: