freebsd-ports/converters/simdutf/files/patch-singleheader_amalgamate.py
Robert Clausecker 0f422e0b98 converters/simdutf: update to 6.1.0
- work around an amalgmation script that doesn't expect git to fail
   to find a repository

Changelog: https://github.com/simdutf/simdutf/releases/tag/v6.1.0

See also:	https://github.com/simdutf/simdutf/issues/656
2025-01-28 15:27:40 +01:00

11 lines
485 B
Python

--- singleheader/amalgamate.py.orig 2025-01-23 23:04:46 UTC
+++ singleheader/amalgamate.py
@@ -236,7 +236,7 @@ def get_timestamp():
raise ValueError(f"non-zero exit code {ret.returncode}")
return ret.stdout.decode('utf-8').strip()
- except (UnicodeDecodeError, FileNotFoundError):
+ except (UnicodeDecodeError, ValueError, FileNotFoundError):
print("git not found, timestamp based on current time")
return str(datetime.datetime.now())