install: Don't print error if related refs were already installed

This commit is contained in:
Alexander Larsson
2016-10-17 17:28:09 +02:00
parent aa081420a4
commit d248f0887b

View File

@@ -201,8 +201,9 @@ do_install (FlatpakDir *dir,
NULL,
cancellable, &local_error))
{
g_printerr (_("Warning: Failed to install related ref: %s\n"),
rel->ref);
if (!g_error_matches (local_error, FLATPAK_ERROR, FLATPAK_ERROR_ALREADY_INSTALLED))
g_printerr (_("Warning: Failed to install related ref %s: %s\n"),
rel->ref, local_error->message);
g_clear_error (&local_error);
}
}