]> git.ipfire.org Git - people/stevee/pakfire.git/commitdiff
parser: Perform a side-lookup for packages in build namespace
authorMichael Tremer <michael.tremer@ipfire.org>
Fri, 24 Mar 2023 17:27:10 +0000 (17:27 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Fri, 24 Mar 2023 17:27:10 +0000 (17:27 +0000)
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
src/libpakfire/parser.c

index b09dff248bf0735092e97eb0b38c4bddb162c471..9ec3af6dd28d7fa06bbf1b1c84dadf162e11ab22 100644 (file)
@@ -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