906-file-python.patch 1.4 KB

123456789101112131415161718192021222324252627282930313233
  1. Author: Joerg Friedrich <Joerg.Friedrich@friedrich-kn.de>
  2. Description:
  3. Adding support for all flags from magic.h in python-magic (Closes: #529354).
  4. diff -Naurp file.orig/python/py_magic.c file/python/py_magic.c
  5. --- file.orig/python/py_magic.c 2009-12-05 17:30:09.000000000 +0100
  6. +++ file/python/py_magic.c 2009-12-05 18:35:22.000000000 +0100
  7. @@ -303,11 +303,24 @@ static struct const_vals {
  8. { "MAGIC_SYMLINK", MAGIC_SYMLINK },
  9. { "MAGIC_COMPRESS", MAGIC_COMPRESS },
  10. { "MAGIC_DEVICES", MAGIC_DEVICES },
  11. - { "MAGIC_MIME", MAGIC_MIME },
  12. + { "MAGIC_MIME_TYPE", MAGIC_MIME_TYPE },
  13. { "MAGIC_CONTINUE", MAGIC_CONTINUE },
  14. { "MAGIC_CHECK", MAGIC_CHECK },
  15. { "MAGIC_PRESERVE_ATIME", MAGIC_PRESERVE_ATIME },
  16. + { "MAGIC_RAW", MAGIC_RAW},
  17. { "MAGIC_ERROR", MAGIC_ERROR},
  18. + { "MAGIC_MIME_ENCODING", MAGIC_MIME_ENCODING },
  19. + { "MAGIC_MIME", MAGIC_MIME },
  20. + { "MAGIC_APPLE", MAGIC_APPLE },
  21. + { "MAGIC_NO_CHECK_COMPRESS", MAGIC_NO_CHECK_COMPRESS },
  22. + { "MAGIC_NO_CHECK_TAR", MAGIC_NO_CHECK_TAR },
  23. + { "MAGIC_NO_CHECK_SOFT", MAGIC_NO_CHECK_SOFT },
  24. + { "MAGIC_NO_CHECK_APPTYPE", MAGIC_NO_CHECK_APPTYPE },
  25. + { "MAGIC_NO_CHECK_ELF", MAGIC_NO_CHECK_ELF },
  26. + { "MAGIC_NO_CHECK_TEXT", MAGIC_NO_CHECK_TEXT },
  27. + { "MAGIC_NO_CHECK_CDF", MAGIC_NO_CHECK_CDF },
  28. + { "MAGIC_NO_CHECK_TOKENS", MAGIC_NO_CHECK_TOKENS },
  29. + { "MAGIC_NO_CHECK_ENCODING", MAGIC_NO_CHECK_ENCODING },
  30. { NULL }
  31. };