mirror of
https://github.com/flatpak/flatpak.git
synced 2026-04-16 13:00:48 -04:00
remote-list: Check for unlikely libostree error
This commit is contained in:
committed by
Alexander Larsson
parent
bcdc073041
commit
bc27dcb518
@@ -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");
|
||||
|
||||
|
||||
Reference in New Issue
Block a user