aboutsummaryrefslogtreecommitdiff
path: root/modpackman.py
diff options
context:
space:
mode:
authorAlexander Hayden <alexhayden25@gmail.com>2020-12-31 17:30:52 -0500
committerAlexander Hayden <alexhayden25@gmail.com>2020-12-31 17:30:52 -0500
commitc6073dd9bd1a25e2c494110b8a660ce333c5509f (patch)
treebec3c571bcee0e2af05d41b07ede854e00cbbd6e /modpackman.py
parent26994267d81f623933af58367f8fad23d757d057 (diff)
parent746bfe5d7422e2db2ba924d31e4311d928729d2b (diff)
downloadmodpackman-c6073dd9bd1a25e2c494110b8a660ce333c5509f.tar.gz
modpackman-c6073dd9bd1a25e2c494110b8a660ce333c5509f.zip
Merge new modpackman into master; update Jeffrey 2
Diffstat (limited to 'modpackman.py')
-rwxr-xr-xmodpackman.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/modpackman.py b/modpackman.py
index 69ebe41..e5e5fdc 100755
--- a/modpackman.py
+++ b/modpackman.py
@@ -85,6 +85,9 @@ def apply_updates():
print("Getting new versions of all mods...")
mod_urls = util.find_updated_urls([x for x in config['mods'].values()], config['pack']['game_version'], threads=16)
print("Downloading and checksumming all mods...")
+ if None in mod_urls:
+ print("[!] Checksum generation aborted due to invalid URLs. Please fix them and try again.")
+ exit(1)
checksums = util.find_checksums(mod_urls)
# Write the updated mods list out to pack-lock.ini