Hi! I made some changes to the download_component function to improve its functionality. Now, if a download fails, the function will attempt to resume the download from where it left off instead of starting from the beginning. This should help avoid having to download large files multiple times due to failed downloads.
I added an additional check to verify the MD5 hash of the downloaded file to ensure that it matches the expected value. If the hash does not match, the function will delete the partially downloaded file and attempt to download it again.
I also added a check to determine if the aria2c package is installed on the system, and if so, it will be used to download the file. If aria2c is not installed, the function will attempt to use curl or wget to download the file.
I've made these same changes in the Photoshop repository as well.
I hope these changes are helpful. Please let me know if you have any questions or concerns. Thank you!
Hi! I made some changes to the download_component function to improve its functionality. Now, if a download fails, the function will attempt to resume the download from where it left off instead of starting from the beginning. This should help avoid having to download large files multiple times due to failed downloads.
I added an additional check to verify the MD5 hash of the downloaded file to ensure that it matches the expected value. If the hash does not match, the function will delete the partially downloaded file and attempt to download it again.
I also added a check to determine if the aria2c package is installed on the system, and if so, it will be used to download the file. If aria2c is not installed, the function will attempt to use curl or wget to download the file.
I've made these same changes in the Photoshop repository as well.
I hope these changes are helpful. Please let me know if you have any questions or concerns. Thank you!