sync update from LAN repo (source dhk-1 @ 3b1ec5b4)

This commit is contained in:
gozeros committed 2026-11-05 10:56:34 +08:00
1 parent da6521b6cb
commit 264e2200d6
995 files changed
+148105 -13399

No files matched your search

@@ -1750,7 +1750,13 @@ def _reconcile_tree(skills_root: Path, view_root: Path, source_root: Path, entry
key = relative.as_posix()
destination = view_root / relative
source_same = cached_source.get(key) == _metadata(source)
target_same = cached_target.get(key) == _metadata(destination)
destination_metadata = _metadata(destination)
# A missing file and an uncached file are both represented by ``None``.
# After an offline skill has been removed from the published view, the
# source metadata can still be current while the target key is absent.
# Do not mistake that cache miss for an unchanged destination or the
# skill will be marked online without restoring any of its files.
target_same = destination_metadata is not None and cached_target.get(key) == destination_metadata
if not (source_same and target_same):
_copy_file_atomic(source, destination)
return prefix