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

Debian Package index file parsing problem #613

Open
scentoni opened this issue Nov 18, 2024 · 2 comments
Open

Debian Package index file parsing problem #613

scentoni opened this issue Nov 18, 2024 · 2 comments
Labels
bug Something isn't working ready-to-ship

Comments

@scentoni
Copy link

This Debian Package index file has 20 stanzas, but jc is only returning 2. A little experimentation with modifying the input shows it's specifically returning only the first and last stanza listed in the input.

$ curl -sSO 'http://repo.aptly.info/dists/squeeze/main/binary-amd64/Packages'
$ grep Filename Packages |wc -l
      20
$ jc <Packages --pkg-index-deb |jq length                                                       
2
@kellyjonbrazil
Copy link
Owner

Hi - thanks for reporting this. I wonder if this has to do with all of the packages having the same name. Hopefully won't be too hard to fix!

@kellyjonbrazil kellyjonbrazil added the bug Something isn't working label Nov 18, 2024
@kellyjonbrazil
Copy link
Owner

kellyjonbrazil commented Nov 19, 2024

I have a fix in the dev branch that will go in the next release. You can test the updated parser by downloading the file[1] below to your parser plugin directory:

https://github.com/kellyjonbrazil/jc/blob/dev/jc/parsers/rpm_qi.py

  • Linux/unix: $HOME/.local/share/jc/jcparsers
  • macOS: $HOME/Library/Application Support/jc/jcparsers
  • Windows: $LOCALAPPDATA\jc\jc\jcparsers

Let me know if you run into any issues!

[1] Note that --pkg-index-deb is really just an alias to --rpm-qi

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working ready-to-ship
Projects
None yet
Development

No branches or pull requests

2 participants