[gnome-builder] makecache: operate on all relative paths
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-builder] makecache: operate on all relative paths
- Date: Sat, 11 Apr 2015 00:31:24 +0000 (UTC)
commit 8381e3b341a926aa7edfd20c43c80cc32b946d81
Author: Giovanni Campagna <gcampagn cs stanford edu>
Date: Fri Apr 10 16:57:20 2015 -0700
makecache: operate on all relative paths
Not just those starting with ./
Relative paths can start with ., .., or just a directory name.
The only distinguisher is that they don't start with /
https://bugzilla.gnome.org/show_bug.cgi?id=747582
libide/autotools/ide-makecache.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/libide/autotools/ide-makecache.c b/libide/autotools/ide-makecache.c
index 20c2303..f9681d6 100644
--- a/libide/autotools/ide-makecache.c
+++ b/libide/autotools/ide-makecache.c
@@ -766,12 +766,12 @@ ide_makecache_parse_c_cxx_include (IdeMakecache *self,
* path information to be as such.
*/
- if (g_str_has_prefix (part2, "./"))
+ if (!g_str_has_prefix (part2, "/"))
{
gchar *parent;
parent = g_file_get_path (self->parent);
- adjusted = g_strdup_printf ("%s"G_DIR_SEPARATOR_S"%s", parent, &part2 [2]);
+ adjusted = g_build_filename (parent, part2, NULL);
g_free (parent);
part2 = adjusted;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]