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:
Arch Librarian 2005-07-14 13:05:55 +00:00
parent 3fe3dde617
commit 7d74866d21
3 changed files with 16 additions and 6 deletions

View file

@ -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
View file

@ -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
View file

@ -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);
}