Commit 57c727e8 by Craig Heffner

Added lzma warning if extraction is attempted without the lzma module installed

parent b1ad202b
...@@ -36,7 +36,9 @@ class LZMAExtractPlugin(binwalk.core.plugin.Plugin): ...@@ -36,7 +36,9 @@ class LZMAExtractPlugin(binwalk.core.plugin.Plugin):
cmd=self.extractor, cmd=self.extractor,
prepend=True) prepend=True)
except ImportError as e: except ImportError as e:
pass if self.module.extractor.enabled:
binwalk.core.common.warning("The Python LZMA module could not be found. It is *strongly* recommended that you install this module for binwalk to provide proper LZMA identification and extraction results.")
def extractor(self, fname): def extractor(self, fname):
fname = os.path.abspath(fname) fname = os.path.abspath(fname)
......
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