浏览代码

require running setup in existing data dir

Nick Sweeting 4 年之前
父节点
当前提交
ef76f7c490
共有 2 个文件被更改,包括 5 次插入5 次删除
  1. 4 4
      archivebox/cli/__init__.py
  2. 1 1
      archivebox/config.py

+ 4 - 4
archivebox/cli/__init__.py

@@ -15,10 +15,10 @@ from importlib import import_module
 CLI_DIR = Path(__file__).resolve().parent
 CLI_DIR = Path(__file__).resolve().parent
 
 
 # these common commands will appear sorted before any others for ease-of-use
 # these common commands will appear sorted before any others for ease-of-use
-meta_cmds = ('help', 'version')                                # dont require valid data folder at all
-main_cmds = ('init', 'config', 'setup')                        # dont require existing db present
-archive_cmds = ('add', 'remove', 'update', 'list', 'status')   # require existing db present
-fake_db = ("oneshot",)                                         # use fake in-memory db
+meta_cmds = ('help', 'version')                                         # dont require valid data folder at all
+main_cmds = ('init', 'config')                                          # dont require existing db present
+archive_cmds = ('add', 'remove', 'update', 'list', 'status', 'setup')   # require existing db present
+fake_db = ("oneshot",)                                                  # use fake in-memory db
 
 
 display_first = (*meta_cmds, *main_cmds, *archive_cmds)
 display_first = (*meta_cmds, *main_cmds, *archive_cmds)
 
 

+ 1 - 1
archivebox/config.py

@@ -983,7 +983,7 @@ def check_dependencies(config: ConfigDict=CONFIG, show_help: bool=True) -> None:
                     info['version'] or 'unable to detect version',
                     info['version'] or 'unable to detect version',
                 )
                 )
             )
             )
-            if dependency in ('SINGLEFILE_BINARY', 'READABILITY_BINARY', 'MERCURY_BINARY'):
+            if dependency in ('YOUTUBEDL_BINARY', 'CHROME_BINARY', 'SINGLEFILE_BINARY', 'READABILITY_BINARY', 'MERCURY_BINARY'):
                 hint(('To install all packages automatically run: archivebox setup',
                 hint(('To install all packages automatically run: archivebox setup',
                     f'or to disable it and silence this warning: archivebox config --set SAVE_{dependency.rsplit("_", 1)[0]}=False',
                     f'or to disable it and silence this warning: archivebox config --set SAVE_{dependency.rsplit("_", 1)[0]}=False',
                     ''), prefix='      ')
                     ''), prefix='      ')