forked from Lainports/freebsd-ports
- 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
11 lines
485 B
Python
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())
|
|
|