mirror of
https://github.com/flatpak/flatpak.git
synced 2026-10-23 16:09:26 -04:00
remote-add: also ignore resolver errors
Resolver errors are more likely in offline remote adds than IO errors. Catch them first when we're downgrading metadata update errors to a warning. https://phabricator.endlessm.com/T17172
This commit is contained in:
1 parent
f2dbaecf86
commit
5fccf0cc0d
1 file changed
+2
-1
@@ -367,7 +367,8 @@ flatpak_builtin_add_remote (int argc, char **argv,
|
||||
remote should already be usable. */
|
||||
if (!flatpak_dir_update_remote_configuration (dir, remote_name, cancellable, &local_error))
|
||||
{
|
||||
if (g_error_matches (local_error, G_IO_ERROR, G_IO_ERROR_FAILED))
|
||||
if (local_error->domain == G_RESOLVER_ERROR ||
|
||||
g_error_matches (local_error, G_IO_ERROR, G_IO_ERROR_FAILED))
|
||||
{
|
||||
g_printerr (_("Warning: Could not update extra metadata for '%s': %s\n"), remote_name, local_error->message);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user