ports/sysutils/diffoscope/patches/patch-tests_utils_tools_py

16 lines
452 B
Text
Raw Normal View History

2023-08-16 22:26:55 +00:00
Our file(1) does not have a -v flag.
Lie and produce the version number diffoscope is looking for.
Index: tests/utils/tools.py
--- tests/utils/tools.py.orig
+++ tests/utils/tools.py
@@ -31,7 +31,7 @@ from ..utils.versions import Version
def file_version():
return (
- subprocess.check_output(("file", "-v"))
+ subprocess.check_output(("echo", "5.33"))
.decode("utf-8")
.splitlines()[0]
.split("-")[-1]