summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRichard Hughes <richard@hughsie.com>2018-02-21 12:00:13 +0000
committerRichard Hughes <richard@hughsie.com>2018-02-21 12:00:13 +0000
commit92487d5e9e3cb01233d2bb7267c4071f3ac953e3 (patch)
tree982e5a703f968be52582b019063185770c8e13f7
parentd5bd692f5f285e0fa86e8caf146b790f11f45849 (diff)
downloadappstream-glib-92487d5e9e3cb01233d2bb7267c4071f3ac953e3.tar.gz
Treat pngquant exit code of 98 (nothing done) as success
Fixes https://github.com/hughsie/appstream-glib/issues/223
-rw-r--r--libappstream-builder/asb-utils.c2
1 files changed, 1 insertions, 1 deletions
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,