remote-list: Check for unlikely libostree error

This commit is contained in:
Phaedrus Leeds
2021-05-02 15:32:51 -05:00
committed by Alexander Larsson
parent bcdc073041
commit bc27dcb518

View File

@@ -197,8 +197,10 @@ list_remotes (GPtrArray *dirs, Column *columns, GCancellable *cancellable, GErro
if (flatpak_dir_get_remote_noenumerate (dir, remote_name))
flatpak_table_printer_append_with_comma (printer, "no-enumerate");
ostree_repo_remote_get_gpg_verify (flatpak_dir_get_repo (dir), remote_name,
&gpg_verify, NULL);
if (!ostree_repo_remote_get_gpg_verify (flatpak_dir_get_repo (dir), remote_name,
&gpg_verify, error))
return FALSE; /* shouldn't happen unless repo config is modified out-of-band */
if (!gpg_verify)
flatpak_table_printer_append_with_comma (printer, "no-gpg-verify");