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

download: add --srpm option #1207

Merged

Conversation

principis
Copy link
Contributor

Fixes #947

Implements the --source option for the download command to download only the source rpm(s).

@kontura kontura self-assigned this Jan 29, 2024
dnf5/commands/download/download.cpp Outdated Show resolved Hide resolved
dnf5/commands/download/download.cpp Outdated Show resolved Hide resolved
dnf5/commands/download/download.cpp Outdated Show resolved Hide resolved
@principis principis force-pushed the download-source-option branch from 4f5c868 to a724d6e Compare February 1, 2024 22:25
@principis
Copy link
Contributor Author

principis commented Feb 1, 2024

Thanks for the feedback! I updated the PR. I'm not sure if this is the best way to do this, but I couldn't find something else.

Edit: Also renamed variables and commit message

@principis principis changed the title download: add --source option download: add --srpm option Feb 2, 2024
@principis principis force-pushed the download-source-option branch from a724d6e to a7624cb Compare February 2, 2024 11:46
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.

One last thing.

dnf5/commands/download/download.cpp Show resolved Hide resolved
@kontura
Copy link
Contributor

kontura commented Feb 5, 2024

(I have also prepared a PR with enabled CI tests once we merge this: rpm-software-management/ci-dnf-stack#1443)

@kontura
Copy link
Contributor

kontura commented Feb 6, 2024

Could you also add a note to doc/changes.rst saying:

Download command
----------------
 * Option ``--source`` was renamed to ``--srpm``.

@principis principis force-pushed the download-source-option branch from a7624cb to 311e2e6 Compare February 16, 2024 15:34
@principis principis force-pushed the download-source-option branch from 311e2e6 to 146145a Compare February 16, 2024 15:35
@principis
Copy link
Contributor Author

Sorry for the delay, I was on vacation.

I've made the requested changes and rebased the branch, thank you for the review!

@kontura
Copy link
Contributor

kontura commented Feb 19, 2024

Thank you for the contribution!

@kontura kontura added this pull request to the merge queue Feb 19, 2024
Merged via the queue into rpm-software-management:main with commit 78d7b76 Feb 19, 2024
10 of 23 checks passed
@principis principis deleted the download-source-option branch February 19, 2024 13:19
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.

Implement dnf download --srpm
2 participants