From 92487d5e9e3cb01233d2bb7267c4071f3ac953e3 Mon Sep 17 00:00:00 2001 From: Richard Hughes Date: Wed, 21 Feb 2018 12:00:13 +0000 Subject: Treat pngquant exit code of 98 (nothing done) as success Fixes https://github.com/hughsie/appstream-glib/issues/223 --- libappstream-builder/asb-utils.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libappstream-builder/asb-utils.c b/libappstream-builder/asb-utils.c index 503c379..b14f411 100644 --- a/libappstream-builder/asb-utils.c +++ b/libappstream-builder/asb-utils.c @@ -302,7 +302,7 @@ asb_utils_optimize_png (const gchar *filename, GError **error) if (!g_spawn_sync (NULL, (gchar **) argv, NULL, G_SPAWN_DEFAULT, NULL, NULL, NULL, &standard_error, &exit_status, error)) return FALSE; - if (exit_status != 0) { + if (exit_status != 0 && exit_status != 98) { g_autofree gchar *argv_str = g_strjoinv (" ", (gchar **) argv); g_set_error (error, AS_APP_ERROR, -- cgit v1.2.1