We automatically copy everything to the local repository if it exists.
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
return 0;
}
-/*
- Sets the default target
-*/
-static int pakfire_build_set_default_target(struct pakfire_build* build) {
- // Default to the current working directory
- if (!*build->target) {
- char* cwd = getcwd(build->target, sizeof(build->target));
- if (!cwd) {
- ERROR(build->pakfire, "getcwd() failed: %m\n");
- return 1;
- }
- }
-
- return 0;
-}
-
/*
Sets up a new cgroup for this build
*/
if (r)
goto ERROR;
- // Set target
- r = pakfire_build_set_default_target(b);
- if (r)
- goto ERROR;
-
// Create cgroup
r = pakfire_build_setup_cgroup(b);
if (r)