From ee454e73ce80b393c1990c9a137eb685291e3619 Mon Sep 17 00:00:00 2001 From: Alexandre Aubin Date: Thu, 25 Apr 2019 19:34:58 +0000 Subject: [PATCH] Small hotfix to fix issues related to the new apps list --- list_builder.py | 2 +- should_i_rebuild.sh | 7 ++++--- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/list_builder.py b/list_builder.py index 3fc42c78..c0d13dfe 100755 --- a/list_builder.py +++ b/list_builder.py @@ -184,7 +184,7 @@ for app, info in apps_list.items(): url = "https://api.github.com/repos/{}/{}/compare/{}...{}".format(owner, repo, previous_rev, app_branch) diff = get_json(url) - if not diff["commits"]: + if not diff or not diff["commits"]: app_rev = previous_rev if previous_rev != 'HEAD' else app_rev else: # Only if those files got updated, do we want to update the diff --git a/should_i_rebuild.sh b/should_i_rebuild.sh index 37adb4e7..b77fe737 100644 --- a/should_i_rebuild.sh +++ b/should_i_rebuild.sh @@ -15,9 +15,10 @@ git pull if [ "$before_pull_commit" != "$(git show HEAD | head -n 1)" ] then - python ./list_builder.py -g $1 official.json - python ./list_builder.py -g $1 community.json - python ./list_builder.py -g $1 dev.json + #python ./list_builder.py -g $1 official.json + #python ./list_builder.py -g $1 community.json + #python ./list_builder.py -g $1 dev.json + python ./list_builder.py -g $1 apps.json python ./update_translations.py official-build.json community-build.json dev-build.json