From: Rico Tzschichholz Date: Thu, 16 Apr 2020 08:00:21 +0000 (+0200) Subject: Revert "vala: Drop mitigation in CodeContext.pkg_config_modversion() when it failed" X-Git-Tag: 0.49.1~172 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2dc1851df13dcbe9969c48e35bc552d0ba0da418;p=thirdparty%2Fvala.git Revert "vala: Drop mitigation in CodeContext.pkg_config_modversion() when it failed" This reverts commit 09e565a511f43e48737b0bfb881ccfb32cf0ab82. --- diff --git a/vala/valacodecontext.vala b/vala/valacodecontext.vala index b79c06bdd..6ddcd8f5c 100644 --- a/vala/valacodecontext.vala +++ b/vala/valacodecontext.vala @@ -880,7 +880,10 @@ public class Vala.CodeContext { try { Process.spawn_command_line_sync (pc, out output, null, out exit_status); if (exit_status != 0) { - output = null; + output = output[0:-1]; + if (output == "") { + output = null; + } } } catch (SpawnError e) { output = null;