From 0cd3f0f20bcf837d9fdcff3266730ee625f54784 Mon Sep 17 00:00:00 2001 From: Daniel Koepping Date: Thu, 10 Sep 2026 11:18:54 -0700 Subject: [PATCH] remove old manifest before rebuild (#38842) invalidate manifest before rebuilt --- openpilot/common/file_chunker.py | 1 + 1 file changed, 1 insertion(+) diff --git a/openpilot/common/file_chunker.py b/openpilot/common/file_chunker.py index 2d080c3fff..5bf30de9ab 100755 --- a/openpilot/common/file_chunker.py +++ b/openpilot/common/file_chunker.py @@ -24,6 +24,7 @@ def chunk_file(path, targets): manifest_path, *chunk_paths = targets actual_num_chunks = max(1, math.ceil(os.path.getsize(path) / CHUNK_SIZE)) assert len(chunk_paths) >= actual_num_chunks, f"Allowed {len(chunk_paths)} chunks but needs at least {actual_num_chunks}, for path {path}" + Path(manifest_path).unlink(missing_ok=True) with open(path, 'rb') as f: for chunk_path in chunk_paths: with open(chunk_path, 'wb') as out: