mirror of
https://gitlab.freedesktop.org/pkg-config/pkg-config.git
synced 2026-05-03 06:38:03 +02:00
2003-04-30 James Henstridge <james@daa.com.au>
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.
This commit is contained in:
parent
3fe3dde617
commit
7d74866d21
3 changed files with 16 additions and 6 deletions
|
|
@ -1,3 +1,10 @@
|
|||
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
|
||||
|
|
|
|||
11
parse.c
11
parse.c
|
|
@ -836,10 +836,13 @@ parse_line (Package *pkg, const char *untrimmed, const char *path)
|
|||
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 == '=')
|
||||
|
|
|
|||
4
pkg.c
4
pkg.c
|
|
@ -716,14 +716,14 @@ verify_package (Package *pkg)
|
|||
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);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue