From 40304ccf44a831ca17e422c83450d24fc5014b61 Mon Sep 17 00:00:00 2001 From: marco Date: Fri, 11 Sep 2020 14:23:14 +0200 Subject: [PATCH] updater: possibile fix changelog --- platformcode/updater.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/platformcode/updater.py b/platformcode/updater.py index 3ea0c785..bf1c3265 100644 --- a/platformcode/updater.py +++ b/platformcode/updater.py @@ -92,7 +92,6 @@ def check(background=False): if 'Merge' in commitJson['commit']['message']: continue logger.log('aggiornando a ' + commitJson['sha']) - alreadyApplied = True # major update if len(commitJson['files']) > 50: @@ -128,9 +127,7 @@ def check(background=False): if not os.path.exists(dirname): os.makedirs(dirname) urllib.urlretrieve(file['raw_url'], filename) - alreadyApplied = False - if not alreadyApplied: # non mando notifica se giĆ  applicata (es. scaricato zip da github) - changelog += commitJson['commit']['message'] + "\n" + changelog += commitJson['commit']['message'] + "\n" except: import traceback logger.error(traceback.format_exc()) @@ -173,6 +170,7 @@ def showSavedChangelog(): except: pass + def calcCurrHash(): treeHash = githash.tree_hash(addonDir).hexdigest() logger.log('tree hash: ' + treeHash)