alexheretic / aurto

Arch Linux AUR tool for managing an auto-updating local 'aurto' package repository
MIT License
134 stars 9 forks source link

Git repositories are not persistent #65

Closed Artefact2 closed 3 years ago

Artefact2 commented 3 years ago

After I reboot my machine, aurto has to redownload all the git repositories of my *-git AUR packages. Considering that I have fairly slow internet and some of my packages have large repositories, this is not optimal.

I noticed that the repositories are downloaded in ~/.cache/aurto/, but I'm not sure why its contents gets deleted. My ~/.cache is on persistent storage and, to my knowledge, none of my other services are cleaning it up.

alexheretic commented 3 years ago

Aurto cleans up the aurutils caches after each update. Perhaps that's a bit too aggressive.

alexheretic commented 3 years ago

If I remember correctly there are some cases when the caches could be in a state that causes issues, so it was easier to clear them on each update instead of trying to clear them on error.

However, the latter approach would be better for your needs.