Skip to content

Commit

Permalink
Merge pull request #2213 from alexlarsson/summary-bugfixes
Browse files Browse the repository at this point in the history
Various fixes from the indexed-summaries branch
  • Loading branch information
openshift-merge-robot authored Oct 8, 2020
2 parents cc1c26f + 2e9db80 commit a13509e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions src/libostree/ostree-repo-pull.c
Original file line number Diff line number Diff line change
Expand Up @@ -5372,8 +5372,8 @@ find_remotes_cb (GObject *obj,

/* Check the metadata in the summary file, especially whether it contains
* all the @refs we are interested in. */
summary_v = g_variant_new_from_bytes (OSTREE_SUMMARY_GVARIANT_FORMAT,
summary_bytes, FALSE);
summary_v = g_variant_ref_sink (g_variant_new_from_bytes (OSTREE_SUMMARY_GVARIANT_FORMAT,
summary_bytes, FALSE));

/* Check the summary’s additional metadata and set up @commit_metadata
* and @refs_and_remotes_table with the refs listed in the summary file,
Expand Down Expand Up @@ -6127,7 +6127,7 @@ ostree_repo_remote_fetch_summary_with_options (OstreeRepo *self,
(void) g_variant_lookup (options, "override-url", "&s", &url_override);
(void) g_variant_lookup (options, "http-headers", "@a(ss)", &extra_headers);
(void) g_variant_lookup (options, "append-user-agent", "&s", &append_user_agent);
(void) g_variant_lookup (options, "n-network-retries", "&u", &n_network_retries);
(void) g_variant_lookup (options, "n-network-retries", "u", &n_network_retries);
}

if (!ostree_repo_remote_get_gpg_verify_summary (self, name, &gpg_verify_summary, error))
Expand Down
2 changes: 1 addition & 1 deletion src/libostree/ostree-sign.c
Original file line number Diff line number Diff line change
Expand Up @@ -365,7 +365,7 @@ _sign_detached_metadata_append (OstreeSign *self,
signature_key,
g_variant_builder_end (signature_builder));

return g_variant_dict_end (&metadata_dict);
return g_variant_ref_sink (g_variant_dict_end (&metadata_dict));
}

/**
Expand Down

0 comments on commit a13509e

Please sign in to comment.