[vala/staging: 1/2] vala: Drop mitigation in CodeContext.pkg_config_modversion() when it failed



commit 09e565a511f43e48737b0bfb881ccfb32cf0ab82
Author: Rico Tzschichholz <ricotz ubuntu com>
Date:   Sat Apr 11 10:55:52 2020 +0200

    vala: Drop mitigation in CodeContext.pkg_config_modversion() when it failed
    
    See https://gitlab.gnome.org/GNOME/vala/issues/971

 vala/valacodecontext.vala | 5 +----
 1 file changed, 1 insertion(+), 4 deletions(-)
---
diff --git a/vala/valacodecontext.vala b/vala/valacodecontext.vala
index 6ddcd8f5c..b79c06bdd 100644
--- a/vala/valacodecontext.vala
+++ b/vala/valacodecontext.vala
@@ -880,10 +880,7 @@ public class Vala.CodeContext {
                try {
                        Process.spawn_command_line_sync (pc, out output, null, out exit_status);
                        if (exit_status != 0) {
-                               output = output[0:-1];
-                               if (output == "") {
-                                       output = null;
-                               }
+                               output = null;
                        }
                } catch (SpawnError e) {
                        output = null;


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]