Remove bundle_combine logic from lib + small changes

This commit is contained in:
relikd
2020-09-21 13:22:39 +02:00
parent a1b3198900
commit 8b7c1d51ee
11 changed files with 167 additions and 167 deletions

View File

@@ -2,6 +2,7 @@
import sys
import common_lib as mylib
import bundle_download # app_names
_bundle_name_dict = None
@@ -25,7 +26,7 @@ def load_json_if_not_already():
def write_json_to_disk():
mylib.json_write(index_fname(), _bundle_name_dict, pretty=True)
mylib.json_write(index_fname(), _bundle_name_dict, pretty=False)
def get_name(bundle_id, langs=['us', 'de'], fallback='< App-Name >'):
@@ -39,7 +40,7 @@ def get_name(bundle_id, langs=['us', 'de'], fallback='< App-Name >'):
def process(bundle_ids):
print('writing index: bundle name ...')
print('writing index: app names ...')
if bundle_ids == ['*']:
bundle_ids = list(mylib.enum_data_appids())
print(' full reset')
@@ -48,7 +49,7 @@ def process(bundle_ids):
load_json_if_not_already()
did_change = False
for bid in bundle_ids:
names = mylib.app_names(bid)
names = bundle_download.app_names(bid)
if not names:
mylib.err('index-app-names', 'could not load: {}'.format(bid))
continue