]> git.ipfire.org Git - thirdparty/mkosi.git/commitdiff
Move foreground argument
authorDaan De Meyer <daan.j.demeyer@gmail.com>
Sat, 13 Apr 2024 08:46:44 +0000 (10:46 +0200)
committerDaan De Meyer <daan.j.demeyer@gmail.com>
Sat, 13 Apr 2024 10:13:39 +0000 (12:13 +0200)
Make sure the argument list has the same order as spawn().

mkosi/run.py

index ea2b9a0e0e7b287a830e241560ace88395e1993f..8a7bd7e10626a0008927fb63e6680983bd0a41a8 100644 (file)
@@ -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)