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

[dnf5] Support for "--userinstalled" argument in repoquery #460

Conversation

jrohel
Copy link
Contributor

@jrohel jrohel commented Apr 14, 2023

Part of #122

@jrohel jrohel force-pushed the feature/dnf5_repoquery_userinstalled branch from 460b8f9 to 6e6e3b5 Compare April 14, 2023 13:52
@jrohel
Copy link
Contributor Author

jrohel commented Apr 14, 2023

@j-mracek I made one more change. But it is only a modification of the text in the documentation.

@@ -79,6 +82,13 @@ void RepoqueryCommand::set_argument_parser() {
installed->set_const_value("true");
installed->link_value(installed_option);

auto userinstalled = parser.add_new_named_arg("userinstalled");
userinstalled->set_long_name("userinstalled");
userinstalled->set_description("Limit to packages that were installed by user.");
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I am sorry, but I would woild like to modify the description. I checked the implementation and it correctly returns all packages that are not installed as dependency or weak dependency. It means everything what was installed by user request, or indirectly as a part of module profile or comps group. Additionally it returns as user installed packages packages with unknown reason.

I think that it is correct, then the description and may be even name of the option does not fit.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@j-mracek I changed the description and the documentation.

@jrohel jrohel force-pushed the feature/dnf5_repoquery_userinstalled branch from 6e6e3b5 to d7d3382 Compare April 18, 2023 10:01
@j-mracek
Copy link
Contributor

LGTM, feel free to merge it when all tests pass

@j-mracek j-mracek merged commit 30388ae into rpm-software-management:main Apr 18, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

2 participants