From f02bbb482e911ca1547be41beff1ab42e95d5406 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jos=C3=A9=20Manuel=20Barroso=20Galindo?= Date: Fri, 6 May 2022 18:46:24 +0200 Subject: [PATCH] games & docs paths contain | now --- .github/calculate_db.py | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/.github/calculate_db.py b/.github/calculate_db.py index cbafed0be..a56c3107b 100755 --- a/.github/calculate_db.py +++ b/.github/calculate_db.py @@ -54,6 +54,9 @@ def main(dryrun): 'linux_github_repository': os.getenv('LINUX_GITHUB_REPOSITORY', '').strip(), 'zips_config': os.getenv('ZIPS_CONFIG', '').strip() }, tags) + + db['files'] = to_external_paths(db['files']) + db['folders'] = to_external_paths(db['folders']) save_data_to_compressed_json(db, db_file_json, db_file_zip) if db_has_no_changes(db, db_url): @@ -84,6 +87,15 @@ def main(dryrun): if not dryrun: force_push_file(db_file_zip, 'main') +def to_external_paths(input): + output = {} + for path, description in input.items(): + if path.startswith('games') or path.startswith('docs'): + path = '|' + path + output[path] = description + + return output + distribution_mister_aliases = [ # Consoles ['nes', 'famicom', 'nintendo'],