Author: jamesh
Date: 2003-05-01 01:14:30 GMT
2003-04-30 James Henstridge <james@daa.com.au>
* pkg.c (verify_package): fix up error messages.
* parse.c (parse_line): don't error out on unknown keywords, as
they may represent future extensions to the file format.
+2003-04-30 James Henstridge <james@daa.com.au>
+
+ * pkg.c (verify_package): fix up error messages.
+
+ * parse.c (parse_line): don't error out on unknown keywords, as
+ they may represent future extensions to the file format.
+
2003-02-22 James Henstridge <james@daa.com.au>
* pkg.c (add_virtual_pkgconfig_package): function to add a virtual
parse_url (pkg, p, path);
else
{
- verbose_error ("Unknown keyword '%s' in '%s'\n",
- tag, path);
-
- exit (1);
+ /* we don't error out on unknown keywords because they may
+ * represent additions to the .pc file format from future
+ * versions of pkg-config. We do make a note of them in the
+ * debug spew though, in order to help catch mistakes in .pc
+ * files. */
+ debug_spew ("Unknown keyword '%s' in '%s'\n",
+ tag, path);
}
}
else if (*p == '=')
if (pkg->version == NULL)
{
verbose_error ("Package '%s' has no Version: field\n",
- pkg->name);
+ pkg->key);
exit (1);
}
if (pkg->description == NULL)
{
verbose_error ("Package '%s' has no Description: field\n",
- pkg->description);
+ pkg->key);
exit (1);
}