Skip to content

Commit 52c867b

Browse files
Co-authored-by: LocalIdentity <LocalIdentity@users.noreply.github.com>
1 parent 183da06 commit 52c867b

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

update_manifest.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,9 @@ def create_manifest(version: str | None = None, replace: bool = False) -> None:
102102
if exclude_dirs and _exclude_directory(exclude_dirs, path):
103103
continue
104104
data = path.read_bytes()
105+
# Normalize line endings for non-binary files in case they were accidentally mixed
106+
if b"\0" not in data:
107+
data = re.sub(rb"\r\n?|\n", b"\r\n", data)
105108
sha1 = hashlib.sha1(data).hexdigest()
106109
name = path.relative_to(config[section]["path"]).as_posix()
107110
attributes = (

0 commit comments

Comments
 (0)