-
Notifications
You must be signed in to change notification settings - Fork 90
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
Add --minimal option for check-ugrade command #1519
Conversation
// Last, only include latest upgrades | ||
upgrades_query.filter_latest_evr(); | ||
if (minimal) { | ||
// when minimal is requested, keep only the earrliest version |
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.
Small typo: earrliest
-> earliest
@@ -153,8 +176,13 @@ void CheckUpgradeCommand::run() { | |||
std::move(advisories.value()), installed_query, libdnf5::sack::QueryCmp::GTE); | |||
} | |||
|
|||
// Last, only include latest upgrades | |||
upgrades_query.filter_latest_evr(); | |||
if (minimal) { |
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.
I believe this should be minimal->get_value()
.
It is also breaking a couple of tests.
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.
May I ask you to explain your comment in more details?
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.
There is an update for tests - rpm-software-management/ci-dnf-stack#1511
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.
I've got it, the test was really incorrect. The test was for pointer and not for bool value in the pointer of BoolOption. Fixed
"Reports the lowest versions of packages that fix a bugfix, enhancement or a fix for a security issue " | ||
"(security) on the system."); |
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.
Both this description and the man page don't mention the newpackage
advisory type which is also used.
What about to change it a bit to: Reports the lowest versions of packages that fix advisories of type bugfix, enhancement, security, or newpackage.
Anyway I do like your description much more than the one in upgrade
command which is quite ambiguous. Could they be unified? There is even a TODO for it.
400faf0
to
9efb114
Compare
It is required for a feature parity with upgrade command where the option is already available. Related: https://issues.redhat.com/browse/RHEL-38804
Additional it provides information about relation to other security options
Great, thank you. |
78101dc
It is required for a feature parity with upgrade command where the option is already available.
Related: https://issues.redhat.com/browse/RHEL-38804
CI: rpm-software-management/ci-dnf-stack#1511