]> git.ipfire.org Git - people/stevee/pakfire.git/blobdiff - src/libpakfire/parser.c
parser: Perform a side-lookup for packages in build namespace
[people/stevee/pakfire.git] / 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