Commit 292895ca authored by Chris Lamb's avatar Chris Lamb 💬

Always warn if tlsh module is not available (not just if a specific fuzziness...

Always warn if tlsh module is not available (not just if a specific fuzziness threshold is specified) to match the epilog of the --help output. This prevents missing support for file rename detection. (Closes: #29, #888237)
parent fc082d25
Pipeline #40515 passed with stage
in 15 minutes and 30 seconds
......@@ -598,7 +598,7 @@ def run_diffoscope(parsed_args):
ProfileManager().setup(parsed_args)
PresenterManager().configure(parsed_args)
logger.debug("Starting diffoscope %s", VERSION)
if not tlsh and Config().fuzzy_threshold != parsed_args.fuzzy_threshold:
if not tlsh:
logger.warning(
'Fuzzy-matching is currently disabled as the "tlsh" module is unavailable.'
)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment