From ce33a468662b31ec04b5c0e7441520a52f481efb Mon Sep 17 00:00:00 2001 From: Nick Sweeting Date: Thu, 25 Apr 2019 19:01:58 -0400 Subject: [PATCH] make index_only option skip archive updating --- archivebox/legacy/main.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/archivebox/legacy/main.py b/archivebox/legacy/main.py index 3c64941a..4302538b 100644 --- a/archivebox/legacy/main.py +++ b/archivebox/legacy/main.py @@ -328,6 +328,9 @@ def update_archive_data(import_path: Optional[str]=None, # Step 2: Write updated index with deduped old and new links back to disk write_main_index(links=list(all_links), out_dir=OUTPUT_DIR) + if index_only: + return all_links + # Step 3: Run the archive methods for each link links = new_links if ONLY_NEW else all_links log_archiving_started(len(links), resume)