1
0
mirror of https://gitlab.com/fdroid/fdroidserver.git synced 2024-11-04 14:30:11 +01:00

scanner: refresh data before loading data

This commit is contained in:
linsui 2024-01-25 19:04:18 +08:00 committed by Hans-Christoph Steiner
parent aa0b85955c
commit fe7e4f8226

View File

@ -332,6 +332,10 @@ class ScannerTool():
# definitions from config.yml here # definitions from config.yml here
self.scanner_data_lookup() self.scanner_data_lookup()
if options and options.refresh_scanner:
self.refresh()
self.load() self.load()
self.compile_regexes() self.compile_regexes()
@ -802,9 +806,6 @@ def main():
# initialize/load configuration values # initialize/load configuration values
common.get_config(opts=options) common.get_config(opts=options)
if options.refresh:
scanner._get_tool().refresh()
probcount = 0 probcount = 0
appids = [] appids = []