Fix up g-ir-generate for new include= syntax

svn path=/trunk/; revision=726
This commit is contained in:
Colin Walters 2008-10-16 13:16:30 +00:00 committed by Philip Withnall
parent deba627f8f
commit c874b58562

View File

@ -1168,9 +1168,11 @@ write_repository (const char *namespace,
{
for (i = 0; dependencies[i]; i++)
{
char **parts = g_strsplit (dependencies[i], "-", 2);
xml_start_element (xml, "include");
xml_printf (xml, " name=\"%s\"", dependencies[i]);
xml_printf (xml, " name=\"%s\" version=\"%s\"", parts[0], parts[1]);
xml_end_element (xml, "include");
g_strfreev (parts);
}
}