Commit 18fafe55 authored by Bruno Coudoin's avatar Bruno Coudoin

Merge of trunk r2889

There is a design issue in gc_file_find_absolute(). When called twice,
it doesn't work if the properties->package_data_dir if not an absolute
directory. This is expecialy the case on windows and the most visible bug
is that congratulations are not spoken on this platform.

svn path=/branches/gcomprixo/; revision=2890
parent 833bd0e7
......@@ -543,10 +543,9 @@ gc_file_find_absolute(const gchar *format, ...)
filename = g_strdup_vprintf (format, args);
va_end (args);
/* Check it's already an absolute file */
if( ((g_path_is_absolute (filename) &&
g_file_test (filename, G_FILE_TEST_EXISTS))
|| gc_net_is_url(filename)) )
/* Check it's already found */
if( g_file_test (filename, G_FILE_TEST_EXISTS)
|| gc_net_is_url(filename) )
{
return filename;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment