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

Added arch option to the download command #1206

Merged
merged 1 commit into from
Feb 7, 2024

Conversation

derickdiaz
Copy link
Contributor

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.

@@ -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.
Copy link
Contributor

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.

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.");
Copy link
Contributor

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.

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...,");
Copy link
Contributor

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,...

@kontura kontura self-assigned this Feb 6, 2024
Copy link
Contributor

@kontura kontura left a comment

Choose a reason for hiding this comment

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

Great, thank you!

@kontura kontura added this pull request to the merge queue Feb 7, 2024
Merged via the queue into rpm-software-management:main with commit 40d2218 Feb 7, 2024
5 of 9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

dnf download --arch <arch>[,<arch>...]
2 participants