fix: Do not send notifications with checkonly flag

This commit is contained in:
Sayantan Santra 2023-08-28 13:45:55 -05:00
parent 2890da4f76
commit 4e97393ea2
Signed by: SinTan1729
GPG key ID: EB3E68BFBA25C85F
2 changed files with 3 additions and 2 deletions

View file

@ -58,6 +58,7 @@ def err_exit(msg, appstate, code=1):
try:
appstate['notification_config']
if appstate['flag'] != 'checkonly':
send_notif(appstate, error=True)
except:
pass

View file

@ -174,7 +174,7 @@ if (flag != 'checkonly' and not appstate['up-to-date']) or flag in ['force', 'bu
# Update version numbers in the versions.json file
if appstate['up-to-date'] and flag != 'buildonly':
print('There\'s nothing to do.')
elif flag != ['checkonly']:
elif flag != 'checkonly':
send_notif(appstate)
try:
os.rename('versions.json', 'versions-old.json')