1
0

0.4.27-1-gf3ab085.add-magic-1-dll-to-the-list-of-dll-files-to-search-for-on-windows.patch 821 B

12345678910111213141516171819
  1. Subject: Add "magic-1.dll" to the list of DLL files to search for on Windows
  2. Origin: upstream, commit 0.4.27-1-gf3ab085 <https://github.com/ahupp/python-magic/commit/0.4.27-1-gf3ab085>
  3. Author: valpogus <32718480+valpogus@users.noreply.github.com>
  4. Date: Thu Jun 16 13:26:45 2022 +0200
  5. This is the name of the DLL file generated when using vcpkg to build libmagic:
  6. https://github.com/microsoft/vcpkg/tree/master/ports/libmagic
  7. --- a/magic/loader.py
  8. +++ b/magic/loader.py
  9. @@ -21,7 +21,7 @@
  10. elif sys.platform in ('win32', 'cygwin'):
  11. - prefixes = ['libmagic', 'magic1', 'cygmagic-1', 'libmagic-1', 'msys-magic-1']
  12. + prefixes = ['libmagic', 'magic1', 'magic-1', 'cygmagic-1', 'libmagic-1', 'msys-magic-1']
  13. for i in prefixes:
  14. # find_library searches in %PATH% but not the current directory,