[gnome-builder] autotools: strip path directory from target name



commit dfd7ec4ae16fa7e30edd83f6a939c0d481c8f54e
Author: Christian Hergert <chergert redhat com>
Date:   Thu Apr 5 12:26:46 2018 -0700

    autotools: strip path directory from target name
    
    We already resolve bindir, so we don't need any prefix added by the local
    directory path in-tree.

 src/plugins/autotools/ide-makecache.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/src/plugins/autotools/ide-makecache.c b/src/plugins/autotools/ide-makecache.c
index 600b0f425..9712b703f 100644
--- a/src/plugins/autotools/ide-makecache.c
+++ b/src/plugins/autotools/ide-makecache.c
@@ -1667,7 +1667,7 @@ ide_makecache_get_build_targets_worker (GTask        *task,
             {
               g_autoptr(IdeBuildTarget) target = NULL;
               g_autoptr(GFile) installdir = NULL;
-              const gchar *name = names [i];
+              g_autofree gchar *name = g_path_get_basename (names[i]);
 
               installdir = find_install_dir (key, amdirs);
               if (installdir == NULL)


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