-
-
Notifications
You must be signed in to change notification settings - Fork 60
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
fix(models/redhat): fix collectRedHatPacks #314
Conversation
I will write a test. Please wait. |
Criteria in RedHat's OVAL definition include advisories for multiple OS versions. For example.
|
So this fix reverts back to the previous state, but I have a feeling it's not the right fix... |
da919f4
to
c25ce06
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thanks @masahiro331 !
What did you implement:
Fixed to include both packages when they have the same package name but different ModularityLabel.
And when importing packages that have the same package name but different versions, we used to rely on the order in which they were written in OVAL, but now we use the new version.
Then, OVALv1 defines non-RHEL5 package information among RHEL5 ones. We have tried to exclude such packages that are not the target version.
Type of change
How Has This Been Tested?
same package name, but different ModularityLabel
OVAL(OVALv2)
before
after
same package name, but different package version
OVAL(OVALv2)
not target RHEL version
OVAL(OVALv1)
before
after
Checklist:
You don't have to satisfy all of the following.
make fmt
make test
Is this ready for review?: YES
Reference