Edit

IABSD.fr/ports/sysutils/diffoscope/patches

Branch :

  • Show log

    Commit

  • Author : bcallah
    Date : 2020-12-21 21:58:42
    Hash : 0bb65899
    Message : Update to diffoscope-163

  • patch-tests_utils_tools_py
  • $OpenBSD: patch-tests_utils_tools_py,v 1.7 2020/12/21 21:58:42 bcallah Exp $
    
    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
    @@ -32,7 +32,7 @@ from diffoscope.tools import get_package_provider
     
     def file_version():
         return (
    -        subprocess.check_output(("file", "-v"))
    +        subprocess.check_output(("echo", "5.33"))
             .decode("utf-8")
             .splitlines()[0]
             .split("-")[-1]