projects
/
platform
/
upstream
/
glib.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8f8fc83
)
resources: compiler: Respect absolute paths
author
Christian Persch
<chpe@gnome.org>
Thu, 22 Mar 2012 13:01:40 +0000
(14:01 +0100)
committer
Christian Persch
<chpe@gnome.org>
Thu, 29 Mar 2012 15:43:43 +0000
(17:43 +0200)
When a <file> already has an absolute path, use it directly instead of trying to
locate it in the --sourcedir directories.
https://bugzilla.gnome.org/show_bug.cgi?id=672541
gio/glib-compile-resources.c
patch
|
blob
|
history
diff --git
a/gio/glib-compile-resources.c
b/gio/glib-compile-resources.c
index
e352fc6
..
31e5624
100644
(file)
--- a/
gio/glib-compile-resources.c
+++ b/
gio/glib-compile-resources.c
@@
-184,6
+184,9
@@
find_file (const gchar *filename)
gchar *real_file;
gboolean exists;
+ if (g_path_is_absolute (filename))
+ return g_strdup (filename);
+
/* search all the sourcedirs for the correct files in order */
for (i = 0; sourcedirs[i] != NULL; i++)
{