Closed jack980517 closed 4 years ago
Thanks for the suggestions! I will be applying them in the dependency install script for all supported distros
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.
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
I stumbled upon some small problems in your script.
git clone
fails. I manually installed git, and added--depth 1
because accessing GitHub from China is slow and commit history isn't necessary for this anyway.if
branch.