[gnome-builder] meson: fix access to path suffix



commit 59f6a97d96f97bccfeea00ebeed34d9be6f6aa6b
Author: Christian Hergert <chergert redhat com>
Date:   Fri Mar 3 10:42:40 2017 -0800

    meson: fix access to path suffix
    
    We can just reuse the full path here, since basename is going to be
    implied as we check the suffix.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=779526

 plugins/meson/meson_plugin/__init__.py |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/plugins/meson/meson_plugin/__init__.py b/plugins/meson/meson_plugin/__init__.py
index 7a1b869..5aed956 100644
--- a/plugins/meson/meson_plugin/__init__.py
+++ b/plugins/meson/meson_plugin/__init__.py
@@ -125,7 +125,7 @@ class MesonBuildSystem(Ide.Object, Ide.BuildSystem, Gio.AsyncInitable):
                         return
                     break
 
-            if infile.get_basename().endswith('.vala'):
+            if infile.endswith('.vala'):
                 # We didn't find anything in the compile_commands.json, so now try to use
                 # the compdb from ninja and see if it has anything useful for us.
                 ninja = None


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