From 197b02b75f0185946d7963fa19b0259535dbc0ab Mon Sep 17 00:00:00 2001 From: Alexander Hayden Date: Sat, 9 Feb 2019 18:18:26 -0500 Subject: Version 11 --- update.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'update.py') diff --git a/update.py b/update.py index a762db8..3404175 100755 --- a/update.py +++ b/update.py @@ -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, -- cgit v1.2.3