]> git.ipfire.org Git - thirdparty/mkosi.git/commitdiff
debian: Don't log about extracting tar archives
authorDaan De Meyer <daan.j.demeyer@gmail.com>
Sun, 6 Aug 2023 17:42:04 +0000 (19:42 +0200)
committerDaan De Meyer <daan.j.demeyer@gmail.com>
Sun, 6 Aug 2023 17:42:04 +0000 (19:42 +0200)
There's a lot of them so it becomes rather noisy.

mkosi/archive.py
mkosi/distributions/debian.py

index 52754a269db5591100a7258bfe5abfe14e7b1d75..ca26e776815558f202ec511d1c7d94efdb600dff 100644 (file)
@@ -42,8 +42,9 @@ def make_tar(src: Path, dst: Path) -> None:
     )
 
 
-def extract_tar(src: Path, dst: Path) -> None:
-    log_step(f"Extracting tar archive {src}…")
+def extract_tar(src: Path, dst: Path, log: bool = True) -> None:
+    if log:
+        log_step(f"Extracting tar archive {src}…")
     bwrap(
         [
             tar_binary(),
index 7acf8d6aa4e544123084fbc694cf4b122da3f834..b72aaf74bd3efcdf2ac2433ca0d1aa0f5f6d8bfb 100644 (file)
@@ -114,7 +114,7 @@ class DebianInstaller(DistributionInstaller):
         for deb in essential:
             with tempfile.NamedTemporaryFile() as f:
                 run(["dpkg-deb", "--fsys-tarfile", deb], stdout=f)
-                extract_tar(Path(f.name), state.root)
+                extract_tar(Path(f.name), state.root, log=False)
 
         # Finally, run apt to properly install packages in the chroot without having to worry that maintainer
         # scripts won't find basic tools that they depend on.