bareos: master fe90f64a

Author Committer Branch Timestamp Parent
arogge pstorz master 2022-12-23 12:49 master c5253811 Pending
Changeset devtools: remove mime from bareos-check-sources

Instead of looking at the mime-type, we now simply check if the file is
empty and try to read it as utf-8 otherwise. This turned out to be
faster than guessing the mime-type first.
We can probably improve this further by adding some filename patterns
that should always be skipped (like *.gz, *.tgz, *.png, *.min.*).
mod - devtools/pip-tools/check_sources/file_util.py Diff File