From: Moritz Warning Date: Fri, 31 Jul 2020 13:09:07 +0000 (+0200) Subject: do no delete data folder X-Git-Tag: v3.0.0~43 X-Git-Url: http://git.openwrt.org/?a=commitdiff_plain;h=66e646140348e434d336fa32f3f0add445e82521;p=web%2Ffirmware-selector-openwrt-org.git do no delete data folder it might have data we want to keep --- diff --git a/misc/collect.py b/misc/collect.py index 6011670..3e381a3 100755 --- a/misc/collect.py +++ b/misc/collect.py @@ -3,7 +3,6 @@ from pathlib import Path import urllib.request import argparse -import shutil import json import sys import os @@ -132,8 +131,6 @@ def scrape(url, selector_path): print(f"file not found: {config_path}") exit(1) - shutil.rmtree(data_path, ignore_errors=True) - # fetch release URLs with urllib.request.urlopen(url) as infile: for path in re.findall(r'href=["\']?([^\'" >]+)', str(infile.read())):