aboutsummaryrefslogtreecommitdiff
path: root/update.py
diff options
context:
space:
mode:
authorAlexander Hayden <alexhayden25@gmail.com>2019-02-09 18:18:26 -0500
committerAlexander Hayden <alexhayden25@gmail.com>2019-02-09 18:18:26 -0500
commit197b02b75f0185946d7963fa19b0259535dbc0ab (patch)
treef51f641e651a10e98c8c9a0372eb59a86d1082e3 /update.py
parente6f589cc6b1eceb8824423b8365c384047fca3ed (diff)
downloadmodpackman-197b02b75f0185946d7963fa19b0259535dbc0ab.tar.gz
modpackman-197b02b75f0185946d7963fa19b0259535dbc0ab.zip
Version 11
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,