Commit 137fc19e authored by Chris Lamb's avatar Chris Lamb 💬

Provide explicit help when the libarchive system package is missing or...

Provide explicit help when the libarchive system package is missing or "incomplete". (Closes: #50)
parent 729629f9
Pipeline #38886 passed with stage
in 15 minutes and 32 seconds
......@@ -694,6 +694,17 @@ def main(args=None):
args = sys.argv[1:]
signal.signal(signal.SIGTERM, sigterm_handler)
try:
import libarchive
except (ImportError, AttributeError):
traceback.print_exc()
print(
"\nMissing or incomplete libarchive module. Try installing your "
"system's 'libarchive' package.",
file=sys.stderr,
)
sys.exit(2)
# Rewrite/support some legacy argument styles
for val, repl in (
('--exclude-directory-metadata', '--exclude-directory-metadata=yes'),
......
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