mirror of
https://github.com/ArchiveBox/ArchiveBox
synced 2024-11-23 12:43:10 +00:00
docs: Improve message for missing singlefile binary
This commit is contained in:
parent
f9afb7869d
commit
76846d18a0
1 changed files with 8 additions and 1 deletions
|
@ -778,9 +778,16 @@ def check_system_config(config: ConfigDict=CONFIG) -> None:
|
||||||
stderr(' CHROME_USER_DATA_DIR="{}"'.format(config['CHROME_USER_DATA_DIR'].split('/Default')[0]))
|
stderr(' CHROME_USER_DATA_DIR="{}"'.format(config['CHROME_USER_DATA_DIR'].split('/Default')[0]))
|
||||||
raise SystemExit(2)
|
raise SystemExit(2)
|
||||||
|
|
||||||
|
def dependency_additional_info(dependency: str) -> str:
|
||||||
|
if dependency == "SINGLEFILE_BINARY":
|
||||||
|
return "Please follow the installation instructions at https://github.com/gildas-lormeau/SingleFile/tree/master/cli and set SINGLEFILE_BINARY or set USE_SINGLEFILE=false"
|
||||||
|
return ""
|
||||||
|
|
||||||
|
|
||||||
def check_dependencies(config: ConfigDict=CONFIG, show_help: bool=True) -> None:
|
def check_dependencies(config: ConfigDict=CONFIG, show_help: bool=True) -> None:
|
||||||
invalid = [
|
invalid = [
|
||||||
'{}: {} ({})'.format(name, info['path'] or 'unable to find binary', info['version'] or 'unable to detect version')
|
'{}: {} ({}). {}'.format(name, info['path'] or 'unable to find binary', info['version'] or 'unable to detect version',
|
||||||
|
dependency_additional_info(name))
|
||||||
for name, info in config['DEPENDENCIES'].items()
|
for name, info in config['DEPENDENCIES'].items()
|
||||||
if info['enabled'] and not info['is_valid']
|
if info['enabled'] and not info['is_valid']
|
||||||
]
|
]
|
||||||
|
|
Loading…
Reference in a new issue