pull-local: Write detached metadata into the correct repository

We want to write to the dest repo, not src.

Noticed while reviewing this code for some other bug.

https://bugzilla.gnome.org/show_bug.cgi?id=733579
This commit is contained in:
Colin Walters committed 2014-07-22 15:43:33 -04:00
1 parent cdaa9517af
commit 9bd229dff5
2 files changed
+3 -1

No files matched your search

+1 -1
View File
@@ -91,7 +91,7 @@ import_one_object (OtLocalCloneData *data,
if (detached_meta)
{
if (!ostree_repo_write_commit_detached_metadata (data->src_repo,
if (!ostree_repo_write_commit_detached_metadata (data->dest_repo,
checksum, detached_meta,
cancellable, error))
goto out;
+2
View File
@@ -326,6 +326,8 @@ rm repo2 -rf
mkdir repo2
${CMD_PREFIX} ostree --repo=repo2 init
${CMD_PREFIX} ostree --repo=repo2 pull-local repo
ostree --repo=repo2 show --print-detached-metadata-key=SIGNATURE test2 > test2-meta
assert_file_has_content test2-meta "HANCOCK"
echo "ok pull-local after commit metadata"
cd ${test_tmpdir}