-
Notifications
You must be signed in to change notification settings - Fork 94
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
Added arch option to the download command #1206
Conversation
doc/commands/download.8.rst
Outdated
@@ -53,6 +53,8 @@ Options | |||
``--urlprotocol`` | |||
| To be used together with ``--url``. It filters out the URLs to the specified protocols: ``http``, ``https``, ``ftp``, or ``file``. This option can be used multiple times. | |||
|
|||
``--arch`` | |||
| Filters the query to packages of given architectures. This option can be usd multiple times. |
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.
Minor: I think it would be cleaner if we wrote just: Limit to packages of given architectures.
Also there is a typo: option can be usd
-> option can be used
.
dnf5/commands/download/download.cpp
Outdated
arch_option = {}; | ||
auto arch = parser.add_new_named_arg("arch"); | ||
arch->set_long_name("arch"); | ||
arch->set_description("limit the query to packages of given architectures."); |
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 would prefer: Limit to packages of given architectures.
dnf5/commands/download/download.cpp
Outdated
arch->set_long_name("arch"); | ||
arch->set_description("limit the query to packages of given architectures."); | ||
arch->set_has_value(true); | ||
arch->set_arg_value_help("ARCH...,"); |
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.
The patter we use here is --enable-plugin=PLUGIN_NAME,...
.
Can you move the comma? -> ARCH,...
473f66e
to
4352070
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.
Great, thank you!
40d2218
Fixes: #946
Add the --arch option to the download command. Filters queried compatible packages based on the specified architectures. If the architecture needs to be changed, the users can use the global --forcearch to change the base architecture.