From: Daan De Meyer Date: Sun, 6 Aug 2023 17:42:04 +0000 (+0200) Subject: debian: Don't log about extracting tar archives X-Git-Tag: v15~26^2~2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e111a64cb6b656aa6b8f95650c00584610dbfba7;p=thirdparty%2Fmkosi.git debian: Don't log about extracting tar archives There's a lot of them so it becomes rather noisy. --- diff --git a/mkosi/archive.py b/mkosi/archive.py index 52754a269..ca26e7768 100644 --- a/mkosi/archive.py +++ b/mkosi/archive.py @@ -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(), diff --git a/mkosi/distributions/debian.py b/mkosi/distributions/debian.py index 7acf8d6aa..b72aaf74b 100644 --- a/mkosi/distributions/debian.py +++ b/mkosi/distributions/debian.py @@ -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.