Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package mkosi for openSUSE:Factory checked in at 2026-10-23 20:29:41 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/mkosi (Old) and /work/SRC/openSUSE:Factory/.mkosi.new.2252680 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "mkosi" Fri Oct 23 20:29:41 2026 rev:36 rq:1392010 version:27.1 Changes: -------- --- /work/SRC/openSUSE:Factory/mkosi/mkosi.changes 2026-10-07 19:35:50.204766747 +0200 +++ /work/SRC/openSUSE:Factory/.mkosi.new.2252680/mkosi.changes 2026-10-23 20:31:15.268016866 +0200 @@ -1,0 +2,6 @@ +Fri Oct 23 10:15:18 UTC 2026 - Thorsten Kukuk <[email protected]> + +- Add ignore-stat-failure.patch to be able to rename images in + postoutput for OBS + +------------------------------------------------------------------- New: ---- ignore-stat-failure.patch ----------(New B)---------- New: - Add ignore-stat-failure.patch to be able to rename images in postoutput for OBS ----------(New E)---------- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ mkosi.spec ++++++ --- /var/tmp/diff_new_pack.fcklDs/_old 2026-10-23 20:31:15.876042273 +0200 +++ /var/tmp/diff_new_pack.fcklDs/_new 2026-10-23 20:31:15.877042315 +0200 @@ -36,6 +36,8 @@ URL: https://github.com/systemd/mkosi Source0: https://github.com/systemd/mkosi/archive/v%{version}.tar.gz#/%{name}-%{version}.tar.gz Source1: mkosi-initrd.conf +# PATCH-FIX-UPSTREAM -- based on PR#4489 +Patch: ignore-stat-failure.patch BuildRequires: %{python_module pip} BuildRequires: %{python_module pytest} BuildRequires: %{python_module wheel} ++++++ ignore-stat-failure.patch ++++++ >From 98a93208ef43ca2461e3b6386a14b5c9adcd52ba Mon Sep 17 00:00:00 2001 From: Thorsten Kukuk <[email protected]> Date: Fri, 23 Oct 2026 10:58:48 +0200 Subject: [PATCH] mkosi: handle failed stat() more gracefully --- mkosi/__init__.py | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/mkosi/__init__.py b/mkosi/__init__.py index 97941a3aa..80a8eb977 100644 --- a/mkosi/__init__.py +++ b/mkosi/__init__.py @@ -2648,12 +2648,16 @@ def save_manifest(context: Context, manifest: Optional[Manifest]) -> None: def print_output_size(path: Path) -> None: - if path.is_dir(): - log_step(f"{path} size is " + format_bytes(dir_size(path)) + ".") - else: - size = format_bytes(path.stat().st_size) - space = format_bytes(path.stat().st_blocks * 512) - log_step(f"{path} size is {size}, consumes {space}.") + try: + if path.is_dir(): + log_step(f"{path} size is " + format_bytes(dir_size(path)) + ".") + else: + st = path.stat() + size = format_bytes(st.st_size) + space = format_bytes(st.st_blocks * 512) + log_step(f"{path} size is {size}, consumes {space}.") + except FileNotFoundError: + logging.info(f"{path} not found, cannot show size.") def cache_tree_paths(config: Config) -> tuple[Path, Path, Path]:
