summaryrefslogtreecommitdiff
path: root/parse.c
diff options
context:
space:
mode:
Diffstat (limited to 'parse.c')
-rw-r--r--parse.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/parse.c b/parse.c
index b69f9fc..700eed9 100644
--- a/parse.c
+++ b/parse.c
@@ -1079,9 +1079,10 @@ parse_line (Package *pkg, const char *untrimmed, const char *path,
}
Package*
-parse_package_file (const char *path, gboolean ignore_requires,
- gboolean ignore_private_libs,
- gboolean ignore_requires_private)
+parse_package_file (const char *key, const char *path,
+ gboolean ignore_requires,
+ gboolean ignore_private_libs,
+ gboolean ignore_requires_private)
{
FILE *f;
Package *pkg;
@@ -1101,6 +1102,7 @@ parse_package_file (const char *path, gboolean ignore_requires,
debug_spew ("Parsing package file '%s'\n", path);
pkg = g_new0 (Package, 1);
+ pkg->key = g_strdup (key);
if (path)
{