aboutsummaryrefslogtreecommitdiff
path: root/update.py
diff options
context:
space:
mode:
Diffstat (limited to 'update.py')
-rwxr-xr-xupdate.py6
1 files changed, 5 insertions, 1 deletions
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,