remote-add: Don't fail if metadata updates fail, just warn

This typically happens when the network is offline or in some weird
state.

Closes: #2884
Approved by: alexlarsson
This commit is contained in:
Alexander Larsson 2019-05-07 16:50:47 +02:00 committed by Atomic Bot
parent b519b69e38
commit 4ef72ab991

View File

@ -363,8 +363,7 @@ flatpak_builtin_remote_add (int argc, char **argv,
remote should already be usable. */
if (!flatpak_dir_update_remote_configuration (dir, remote_name, cancellable, &local_error))
{
if (local_error->domain == G_RESOLVER_ERROR ||
g_error_matches (local_error, G_IO_ERROR, G_IO_ERROR_FAILED))
if (local_error->domain == G_RESOLVER_ERROR || local_error->domain == G_IO_ERROR)
{
g_printerr (_("Warning: Could not update extra metadata for '%s': %s\n"), remote_name, local_error->message);
}