mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-05-20 12:32:10 +02:00
resources: compiler: Respect absolute paths
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
This commit is contained in:
parent
8f8fc83670
commit
e3cc48f289
@ -184,6 +184,9 @@ find_file (const gchar *filename)
|
|||||||
gchar *real_file;
|
gchar *real_file;
|
||||||
gboolean exists;
|
gboolean exists;
|
||||||
|
|
||||||
|
if (g_path_is_absolute (filename))
|
||||||
|
return g_strdup (filename);
|
||||||
|
|
||||||
/* search all the sourcedirs for the correct files in order */
|
/* search all the sourcedirs for the correct files in order */
|
||||||
for (i = 0; sourcedirs[i] != NULL; i++)
|
for (i = 0; sourcedirs[i] != NULL; i++)
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user