Grab modified files from git #25

Closed
opened 2021-07-11 16:56:18 +02:00 by anonfunc · 1 comment
Owner

Once all PKGBUILD's got checked once, ALHP can grab updates from git log oldhash...HEAD.

This will cut down on disk load and speed up checking for updates significantly.

Once all PKGBUILD's got checked once, ALHP can grab updates from git log *oldhash*...HEAD. This will cut down on disk load and speed up checking for updates significantly.
anonfunc added this to the beta milestone 2021-07-11 16:56:18 +02:00
anonfunc added the
enhancement
label 2021-07-11 16:56:18 +02:00
anonfunc added a new dependency 2021-07-13 13:47:20 +02:00
anonfunc removed a dependency 2021-07-13 13:47:24 +02:00
Author
Owner

I decided to go with hashing (Blake3) each PKGBUILD instead.

Comparing these hashes with the database is much faster then parsing almost every PKGBUILD with makepkg, which is really slow.

Extracting from git had the disadvantage that I needed to keep track if all packages up to commit X where build (and not delayed due to dep. not up to date), which is a huge pita.

Feel free to suggest something more effective as this. I'm always open to improvements.

I decided to go with hashing (Blake3) each PKGBUILD instead. Comparing these hashes with the database is much faster then parsing almost every PKGBUILD with makepkg, which is *really* slow. Extracting from git had the disadvantage that I needed to keep track if all packages up to commit X where build (and not delayed due to dep. not up to date), which is a huge pita. Feel free to suggest something more effective as this. I'm always open to improvements.
Sign in to join this conversation.
No description provided.