repo: Add ostree_repo_remote_get_gpg_verify()

Trivial function, but it does at least centralize the default value.
This commit is contained in:
Matthew Barnes committed 2015-04-16 18:13:13 -04:00
1 parent d7a6f257a0
commit 54bf665521
4 files changed
+31 -3

No files matched your search

+2 -3
View File
@@ -1696,9 +1696,8 @@ ostree_repo_pull_with_options (OstreeRepo *self,
{
pull_data->remote_name = g_strdup (remote_name_or_baseurl);
if (!_ostree_repo_get_remote_boolean_option (self,
remote_name_or_baseurl, "gpg-verify",
TRUE, &pull_data->gpg_verify, error))
if (!ostree_repo_remote_get_gpg_verify (self, remote_name_or_baseurl,
&pull_data->gpg_verify, error))
goto out;
}