parse: Don't emit unknown keyword warning for Libs.private

Requires.private and Libs.private are skipped unless --static is in use.
However, the parser was checking for Libs.private and this option in a
single conditional unlike Requires.private. This was making the check
fall through to the else and emit an "Unknown keyword" debug message
when --static was not used. This was harmless but not true.

https://bugs.freedesktop.org/show_bug.cgi?id=99770
This commit is contained in:
Dan Nicholson 2017-04-07 09:17:28 -05:00
parent edf8e6f0ea
commit 2dd2b19944

View file

@ -962,9 +962,11 @@ parse_line (Package *pkg, const char *untrimmed, const char *path,
else
goto cleanup;
}
else if ((strcmp (tag, "Libs.private") == 0) &&
ignore_private_libs == FALSE)
else if (strcmp (tag, "Libs.private") == 0)
{
if (!ignore_private_libs)
parse_libs_private (pkg, p, path);
}
else if (strcmp (tag, "Libs") == 0)
parse_libs (pkg, p, path);
else if (strcmp (tag, "Cflags") == 0 ||