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 authored and Atomic Bot committed 2016-10-21 10:50:41 +00:00
1 parent cf6ec1bbbc
commit d43c121675
1 file changed
+6
+6
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: