1
0

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

1234567891011121314151617181920
  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. Forwarded: not-needed
  6. This is the name of the DLL file generated when using vcpkg to build libmagic:
  7. https://github.com/microsoft/vcpkg/tree/master/ports/libmagic
  8. --- a/magic/loader.py
  9. +++ b/magic/loader.py
  10. @@ -21,7 +21,7 @@
  11. elif sys.platform in ('win32', 'cygwin'):
  12. - prefixes = ['libmagic', 'magic1', 'cygmagic-1', 'libmagic-1', 'msys-magic-1']
  13. + prefixes = ['libmagic', 'magic1', 'magic-1', 'cygmagic-1', 'libmagic-1', 'msys-magic-1']
  14. for i in prefixes:
  15. # find_library searches in %PATH% but not the current directory,