goto CLEANUP;
}
+ // Is this a source package?
+ int is_source = pakfire_package_is_source(*pkg);
+
// Assign a new UUID to this package
char* uuid = pakfire_generate_uuid();
if (!uuid) {
free(value);
}
+ if (is_source) {
+ PakfireRelationList list;
+
+ // Fetch build dependencies
+ char* requires = pakfire_parser_get(parser, "build", "requires");
+
+ if (requires && *requires) {
+ r = pakfire_relationlist_create_from_string(&list, parser->pakfire, requires);
+ if (r) {
+ pakfire_relationlist_unref(list);
+ goto CLEANUP;
+ }
+
+ pakfire_package_set_requires(*pkg, list);
+ pakfire_relationlist_unref(list);
+ }
+ }
+
// All okay
r = 0;