diff options
author | Alexander Hayden <alexhayden25@gmail.com> | 2019-02-09 18:18:26 -0500 |
---|---|---|
committer | Alexander Hayden <alexhayden25@gmail.com> | 2019-02-09 18:18:26 -0500 |
commit | 197b02b75f0185946d7963fa19b0259535dbc0ab (patch) | |
tree | f51f641e651a10e98c8c9a0372eb59a86d1082e3 /update.py | |
parent | e6f589cc6b1eceb8824423b8365c384047fca3ed (diff) | |
download | modpackman-197b02b75f0185946d7963fa19b0259535dbc0ab.tar.gz modpackman-197b02b75f0185946d7963fa19b0259535dbc0ab.zip |
Version 11
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, |