Skip to content
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

Seekable stream reader #107

Merged
merged 16 commits into from
May 24, 2021
Merged

Seekable stream reader #107

merged 16 commits into from
May 24, 2021

Conversation

juliospain
Copy link
Contributor

When using the stream reader with a 7zip file, and retrieving only the entries, I received the error that the client is not seekable.

This can be solved by setting up the seek call back in the libarchive archive. Then the open function can be called as usual which set-ups the other call-backs.

@juliospain
Copy link
Contributor Author

Sorry about the thousand commits :P The testing is not working in my computer and I had to develop it somehow.

@Changaco
Copy link
Owner

I can't review this because the diff is unreadable. It looks like you've changed all line endings.

@juliospain
Copy link
Contributor Author

Sorry about the EOL. Now it is fine. I included a test with 7zip reading entries (it requires the seek callback)

@Changaco Changaco merged commit efc6f4e into Changaco:master May 24, 2021
alxchk pushed a commit to alxchk/python-libarchive-c that referenced this pull request Dec 8, 2021
Co-authored-by: Julio Martin-Hidalgo <julio.martin-hidalgo@airbus.com>
Co-authored-by: Charly C <changaco@changaco.oy.lc>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants