Edit

IABSD.fr/ports/sysutils/diffoscope/patches

Branch :

  • Show log

    Commit

  • Author : naddy
    Date : 2022-03-11 19:57:10
    Hash : 2b3700e3
    Message : drop RCS Ids

  • patch-tests_utils_tools_py
  • 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]