-
Notifications
You must be signed in to change notification settings - Fork 31
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support for more compression formats for prefetching #48
Comments
cc @Focshole |
Hi, So far, I had assumed this is what also pacman does. If pacoloco behaviour differs from pacman's, what you should see is that updates for those repositories does get prefetched (you see successful prefetches from those repos) but once an updated package gets requested, pacoloco starts a new download (because it has prefetched a file with a wrong extension). I'm not sure on what is the issue we do have here, do you see that issue or other issues in logs? |
The issue is the compression of the repository database files (file extension .db):
|
Thank you for your report. Right now when pacoloco has to parse .db files, it assumes they are gzip compressed, which is not always true as I see. My fault. I'll have to include other formats as well, I'll look for specifications on allowed compression algorithms for those, the fix should be easy. |
Hi, |
Got a minute to finish this feature, let me know if it works for you! It should fallback to zstd if gzip extraction fails! |
I have enabled prefetching and it is working well for most repositories. However it doesn’t work with chaotic-aur and repo-ck.
According to the log output pacoloco assumes that the .db files are gzip compressed.
According to the file tool, one is XZ compressed and the other one is zstd compressed.
I am not sure if there are also other compressions in use with other repositories.
It would be nice if pacoloco could support the same compression formats as pacman.
Seems like pacman uses libarchive for that.
The text was updated successfully, but these errors were encountered: