Skip to content
Snippets Groups Projects
Commit 0721db0c authored by Antoine Lambert's avatar Antoine Lambert
Browse files

browse/utils: Use python-magic when available instead of file-magic

swh-web uses the magic module to detect mime_type and encoding of contents stored
inside the archive. Its is provided by the python-magic package (debian buster)
or by the file-magic package (debian stretch).

As python-magic is more stable than file-magic (see a2759fec), prefer to use
it instead. Nevertheless, keep backward compatibility for file-magic as it is
currently used in production environment.
parent 81e9970a
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment