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

Custom built/third party RPMs may not be parsed correctly #3787

Open
bfahr opened this issue May 10, 2023 · 0 comments
Open

Custom built/third party RPMs may not be parsed correctly #3787

bfahr opened this issue May 10, 2023 · 0 comments
Labels

Comments

@bfahr
Copy link
Contributor

bfahr commented May 10, 2023

When core collection is turned off or unsupported, if a custom or third party RPM is installed that does not include the expected fields it will be parsed incorrectly by _parse_line. Here is an example line:

perl-IO-Socket-IP-0.21-5.el7.noarch\tFri Apr 13 12:24:53 2018\t1505822292\tRSA/SHA256, Tue Sep 19 05:07:42 2017, Key ID 199e2f91fd431d51\t(none)

Expected parts are

'installtime', 'buildtime', 'vendor', 'buildserver', 'pgpsig', 'pgpsig_short'

_parse_line yields:

{'name': 'perl-IO-Socket-IP',
 'version': '0.21',
 'release': '5.el7',
 'arch': 'noarch',
 'epoch': '0',
 'installtime': 'Fri Apr 13 12:24:53 2018',
 'buildtime': '1505822292',
 'vendor': 'RSA/SHA256, Tue Sep 19 05:07:42 2017, Key ID 199e2f91fd431d51',
 'buildserver': '(none)'}
@bfahr bfahr added the bug label May 10, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant