From 2dc1851df13dcbe9969c48e35bc552d0ba0da418 Mon Sep 17 00:00:00 2001 From: Rico Tzschichholz Date: Thu, 16 Apr 2020 10:00:21 +0200 Subject: [PATCH] Revert "vala: Drop mitigation in CodeContext.pkg_config_modversion() when it failed" This reverts commit 09e565a511f43e48737b0bfb881ccfb32cf0ab82. --- vala/valacodecontext.vala | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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; -- 2.47.2