return 0;
}
-static int pakfire_build_package_add_files(struct pakfire* pakfire, struct pakfire_parser* makefile,
- const char* buildroot, const char* namespace, struct pakfire_package* pkg,
- struct pakfire_packager* packager) {
+static int pakfire_build_package_add_files(struct pakfire_build* build,
+ struct pakfire_parser* makefile, const char* buildroot, const char* namespace,
+ struct pakfire_package* pkg, struct pakfire_packager* packager) {
struct pakfire_filelist* filelist = NULL;
char path[PATH_MAX];
int r = 1;
return 0;
// Convert to absolute path
- pakfire_make_path(pakfire, path, buildroot);
+ pakfire_make_path(build->pakfire, path, buildroot);
// Split into includes and excludes
for (char** file = files; *file; file++) {
}
// Allocate a new filelist
- r = pakfire_filelist_create(&filelist, pakfire);
+ r = pakfire_filelist_create(&filelist, build->pakfire);
if (r)
goto ERROR;
goto ERROR;
const size_t length = pakfire_filelist_size(filelist);
- DEBUG(pakfire, "%zu file(s) found\n", length);
+ DEBUG(build->pakfire, "%zu file(s) found\n", length);
// Nothing to do if the filelist is empty
if (!length)
goto ERROR;
// Find dependencies
- r = pakfire_build_find_dependencies(pakfire, pkg, filelist, buildroot);
+ r = pakfire_build_find_dependencies(build->pakfire, pkg, filelist, buildroot);
if (r) {
- ERROR(pakfire, "Finding dependencies failed: %m\n");
+ ERROR(build->pakfire, "Finding dependencies failed: %m\n");
goto ERROR;
}
goto ERROR;
// Add files
- r = pakfire_build_package_add_files(build->pakfire, makefile, buildroot, namespace,
+ r = pakfire_build_package_add_files(build, makefile, buildroot, namespace,
pkg, packager);
if (r)
goto ERROR;