]> git.ipfire.org Git - people/stevee/pakfire.git/commitdiff
build: No longer set a default target
authorMichael Tremer <michael.tremer@ipfire.org>
Mon, 31 Oct 2022 16:44:45 +0000 (16:44 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Mon, 31 Oct 2022 16:44:45 +0000 (16:44 +0000)
We automatically copy everything to the local repository if it exists.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
src/libpakfire/build.c

index 6e304717bc1bf5b0bc524ae1c34fa95f5cd85e5c..2a94f7cbbaf766f4ba1b47f04cb0b811f14ed63a 100644 (file)
@@ -763,22 +763,6 @@ static int pakfire_build_parse_id(struct pakfire_build* build, const char* id) {
        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
 */
@@ -972,11 +956,6 @@ PAKFIRE_EXPORT int pakfire_build_create(struct pakfire_build** 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)