def missing()
This commit is contained in:
@@ -10,6 +10,10 @@ def index_fname():
|
|||||||
return mylib.path_data_index('bundle_names.json')
|
return mylib.path_data_index('bundle_names.json')
|
||||||
|
|
||||||
|
|
||||||
|
def missing():
|
||||||
|
return not mylib.file_exists(index_fname())
|
||||||
|
|
||||||
|
|
||||||
def load_json_if_not_already():
|
def load_json_if_not_already():
|
||||||
global _bundle_name_dict
|
global _bundle_name_dict
|
||||||
if not _bundle_name_dict:
|
if not _bundle_name_dict:
|
||||||
|
|||||||
@@ -39,7 +39,7 @@ def rebuild_domain_index(bundle_ids, deleteOnly=False):
|
|||||||
|
|
||||||
|
|
||||||
def rebuild_name_index(new_ids):
|
def rebuild_name_index(new_ids):
|
||||||
if not mylib.file_exists(mylib.path_data_index('bundle_names.json')):
|
if index_bundle_names.missing():
|
||||||
index_bundle_names.process(['*'])
|
index_bundle_names.process(['*'])
|
||||||
elif len(new_ids) > 0:
|
elif len(new_ids) > 0:
|
||||||
index_bundle_names.process(new_ids) # after bundle_download
|
index_bundle_names.process(new_ids) # after bundle_download
|
||||||
|
|||||||
Reference in New Issue
Block a user