mirror of
https://github.com/flatpak/flatpak.git
synced 2026-01-26 14:13:26 +00:00
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:
parent
b519b69e38
commit
4ef72ab991
@ -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);
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user