]> git.ipfire.org Git - thirdparty/mkosi.git/commitdiff
Add more debug logging around copying repository metadata
authorDaan De Meyer <daan.j.demeyer@gmail.com>
Sun, 11 Feb 2024 12:35:18 +0000 (13:35 +0100)
committerDaan De Meyer <daan.j.demeyer@gmail.com>
Sun, 11 Feb 2024 12:35:18 +0000 (13:35 +0100)
mkosi/__init__.py

index dc4b7e23dd47b4cb57fed347b2ab1f96fa698ee6..fd00c4547f2e042a748a1cae18edcf28ea78121d 100644 (file)
@@ -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 []