mirror of
https://github.com/SinTan1729/ReVancedBuilder.git
synced 2024-12-25 20:28:37 -06:00
fix: Do not send notifications with checkonly flag
This commit is contained in:
parent
2890da4f76
commit
4e97393ea2
2 changed files with 3 additions and 2 deletions
|
@ -58,7 +58,8 @@ def err_exit(msg, appstate, code=1):
|
||||||
|
|
||||||
try:
|
try:
|
||||||
appstate['notification_config']
|
appstate['notification_config']
|
||||||
send_notif(appstate, error=True)
|
if appstate['flag'] != 'checkonly':
|
||||||
|
send_notif(appstate, error=True)
|
||||||
except:
|
except:
|
||||||
pass
|
pass
|
||||||
|
|
||||||
|
|
|
@ -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
|
# Update version numbers in the versions.json file
|
||||||
if appstate['up-to-date'] and flag != 'buildonly':
|
if appstate['up-to-date'] and flag != 'buildonly':
|
||||||
print('There\'s nothing to do.')
|
print('There\'s nothing to do.')
|
||||||
elif flag != ['checkonly']:
|
elif flag != 'checkonly':
|
||||||
send_notif(appstate)
|
send_notif(appstate)
|
||||||
try:
|
try:
|
||||||
os.rename('versions.json', 'versions-old.json')
|
os.rename('versions.json', 'versions-old.json')
|
||||||
|
|
Loading…
Reference in a new issue