LukeZGD / Legacy-iOS-Kit

An all-in-one tool to restore/downgrade, save SHSH blobs, and jailbreak legacy iOS devices
GNU General Public License v3.0
1.22k stars 112 forks source link

Small problems #32

Closed jack980517 closed 4 years ago

jack980517 commented 4 years ago

I stumbled upon some small problems in your script.

LukeZGD commented 4 years ago

Thanks for the suggestions! I will be applying them in the dependency install script for all supported distros

jack980517 commented 4 years ago

I meant checking the hashsum of the file when re-installing dependencies, not immediately after the download. If the hash is the same, we would know that the file is correct, and thus would not need to be redownloaded. Currently your script deletes the rpm file unconditionally when re-install dependencies is chosen, which causes the file to be downloaded again, and I want to avoid that.

LukeZGD commented 4 years ago

I think I get what you mean now, thanks for clarifying! I just updated the dependency install to copy the downloading pkgs to "saved" and only delete when hashes don't match