]> git.ipfire.org Git - pakfire.git/commitdiff
Revert "build: Allow build environments to be interactive"
authorMichael Tremer <michael.tremer@ipfire.org>
Tue, 17 May 2022 14:14:26 +0000 (14:14 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Tue, 17 May 2022 14:14:26 +0000 (14:14 +0000)
This reverts commit 91b5b0472158835cf53b489134d4d2e53e717598.

This is quite problematic because this flag is being used in multiple
ways. One version is that we take user input, the other one is that we
show progress bars on the terminal.

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

index 97b7241888e3a34e608f8b14a1391a16174e85d3..5fe47ffae31b74d424d150ab15c4ba1b8d78bf9f 100644 (file)
@@ -1031,6 +1031,12 @@ PAKFIRE_EXPORT int pakfire_create(struct pakfire** pakfire, const char* path,
        if (r)
                goto ERROR;
 
+       // Setup build stuff
+       if (pakfire_has_flag(p, PAKFIRE_FLAGS_BUILD)) {
+               // Builds are never interactive
+               p->flags &= ~PAKFIRE_FLAGS_INTERACTIVE;
+       }
+
        *pakfire = p;
 
        return 0;