diff options
Diffstat (limited to 'update.py')
-rwxr-xr-x | update.py | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -112,6 +112,7 @@ def check_updates(args): latest = read_file(args.filename) old = read_file(args.version_file) old_urls = [mod[2] for mod in old] + num_updates = 0 print("Checking updates...") for mod in latest: @@ -122,8 +123,11 @@ def check_updates(args): print(" No updates") else: print(" Found update: " + resp.url.split('/')[-1]) + num_updates += 1 - print("Finished checking for updates!") + print("Finished checking for updates. {num} mods can be updated".format(num=num_updates)) + if num_updates >= 0: + print("Run 'python update.py apply_updates' to create a new version with these updates applied.") COMMAND_MAP = { 'install': install, |