From a47f0a0dd1dd43f90a1a86fa6b67ae551c13a844 Mon Sep 17 00:00:00 2001 From: Alexander Hayden Date: Sat, 19 Dec 2020 19:16:41 -0500 Subject: installer downloads updates & write readme --- modpackman.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'modpackman.py') diff --git a/modpackman.py b/modpackman.py index f578db4..18cdecc 100755 --- a/modpackman.py +++ b/modpackman.py @@ -45,9 +45,7 @@ def install(): else: print(f'Installing {name} from {url}...') print(f' ({i} of {len(pack_lock["mod_versions"])})', end='\r') - download_obj = requests.get(url, stream=True) - with open(mod_path, "wb") as write_file: - shutil.copyfileobj(download_obj.raw, write_file) + util.download_file(url, mod_path) print("Done!" + " " * 8) # Remove any old mods that might be stuck in the mods folder -- cgit v1.2.3