From: Daan De Meyer Date: Sun, 11 Feb 2024 12:35:18 +0000 (+0100) Subject: Add more debug logging around copying repository metadata X-Git-Tag: v21~59^2~2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c9772983a021dbb22cde26205b7e3bdc272de052;p=thirdparty%2Fmkosi.git Add more debug logging around copying repository metadata --- diff --git a/mkosi/__init__.py b/mkosi/__init__.py index dc4b7e23d..fd00c4547 100644 --- a/mkosi/__init__.py +++ b/mkosi/__init__.py @@ -2927,11 +2927,13 @@ def copy_repository_metadata(context: Context) -> None: any((context.package_cache_dir / "cache" / subdir).glob("*")) or any((context.package_cache_dir / "lib" / subdir).glob("*")) ): + logging.debug(f"Found repository metadata in {context.package_cache_dir}, not copying repository metadata") return for d in ("cache", "lib"): src = context.config.package_cache_dir_or_default() / d / subdir if not src.exists(): + logging.debug(f"{src} does not exist, not copying repository metadata from it") continue caches = context.config.distribution.package_manager(context.config).cache_subdirs(src) if d == "cache" else []