From: Michael Tremer Date: Tue, 17 May 2022 14:14:26 +0000 (+0000) Subject: Revert "build: Allow build environments to be interactive" X-Git-Tag: 0.9.28~789 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=369e5c86f42bc3189d6a09385d3783fecb28d597;p=pakfire.git Revert "build: Allow build environments to be interactive" 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 --- diff --git a/src/libpakfire/pakfire.c b/src/libpakfire/pakfire.c index 97b724188..5fe47ffae 100644 --- a/src/libpakfire/pakfire.c +++ b/src/libpakfire/pakfire.c @@ -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;