updater: possibile fix changelog

This commit is contained in:
marco
2020-09-11 14:23:14 +02:00
parent 9198e61791
commit 40304ccf44

View File

@@ -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)