From: Daan De Meyer Date: Sat, 13 Apr 2024 08:46:44 +0000 (+0200) Subject: Move foreground argument X-Git-Tag: v23~4^2~18 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=afbf5fa41faabc90c5a7f711fc634b9fa489a7c0;p=thirdparty%2Fmkosi.git Move foreground argument Make sure the argument list has the same order as spawn(). --- diff --git a/mkosi/run.py b/mkosi/run.py index ea2b9a0e0..8a7bd7e10 100644 --- a/mkosi/run.py +++ b/mkosi/run.py @@ -134,10 +134,10 @@ def run( env: Mapping[str, str] = {}, cwd: Optional[Path] = None, log: bool = True, + foreground: bool = True, preexec_fn: Optional[Callable[[], None]] = None, success_exit_status: Sequence[int] = (0,), sandbox: Sequence[PathString] = (), - foreground: bool = True, ) -> CompletedProcess: if input is not None: assert stdin is None # stdin and input cannot be specified together @@ -154,10 +154,10 @@ def run( env=env, cwd=cwd, log=log, + foreground=foreground, preexec_fn=preexec_fn, success_exit_status=success_exit_status, sandbox=sandbox, - foreground=foreground, ) as process: out, err = process.communicate(input)