From ae8e18f9f23f456f61ce9af4e8fbcb20cc6bcb8e Mon Sep 17 00:00:00 2001 From: scriptod911 <70215102+scriptod911@users.noreply.github.com> Date: Wed, 6 Mar 2024 10:23:35 +0200 Subject: [PATCH] Utilities: change order of download in macrecovery (#524) Download the big file first (BaseSystem) and then the chunklist may result in a token timeout for people with slow internet connections, to work around this simply moving the order of download so that the chunklist downloads first solves this issue. --- Utilities/macrecovery/macrecovery.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Utilities/macrecovery/macrecovery.py b/Utilities/macrecovery/macrecovery.py index 76a60aa1..10e868f8 100755 --- a/Utilities/macrecovery/macrecovery.py +++ b/Utilities/macrecovery/macrecovery.py @@ -282,10 +282,10 @@ def action_download(args): if args.verbose: print(info) print(f'Downloading {info[INFO_PRODUCT]}...') - dmgname = '' if args.basename == '' else args.basename + '.dmg' - dmgpath = save_image(info[INFO_IMAGE_LINK], info[INFO_IMAGE_SESS], dmgname, args.outdir) cnkname = '' if args.basename == '' else args.basename + '.chunklist' cnkpath = save_image(info[INFO_SIGN_LINK], info[INFO_SIGN_SESS], cnkname, args.outdir) + dmgname = '' if args.basename == '' else args.basename + '.dmg' + dmgpath = save_image(info[INFO_IMAGE_LINK], info[INFO_IMAGE_SESS], dmgname, args.outdir) try: verify_image(dmgpath, cnkpath) return 0