From: Michael Tremer Date: Fri, 24 Mar 2023 17:27:10 +0000 (+0000) Subject: parser: Perform a side-lookup for packages in build namespace X-Git-Tag: 0.9.29~210 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=3ea19eac5d6343619988d7ee5e10358efb1ea2f7;p=pakfire.git parser: Perform a side-lookup for packages in build namespace Signed-off-by: Michael Tremer --- diff --git a/src/libpakfire/parser.c b/src/libpakfire/parser.c index b09dff248..9ec3af6dd 100644 --- a/src/libpakfire/parser.c +++ b/src/libpakfire/parser.c @@ -384,6 +384,11 @@ static const char* pakfire_parser_get_raw(struct pakfire_parser* parser, const c d = pakfire_parser_find_declaration(parser, template, name); if (d && d->value) return d->value; + + // If still nothing was found, search in the "build" namespace + d = pakfire_parser_find_declaration(parser, "build", name); + if (d && d->value) + return d->value; } // Otherwise we walk up the namespace to find a match