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

Add support for downloadonly in DNF5 #559

Merged
merged 3 commits into from
May 29, 2023
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 10 additions & 6 deletions dnf5/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -769,12 +769,16 @@ int main(int argc, char * argv[]) try {

dnf5::print_transaction_size_stats(context);

for (const auto & tsflag : base.get_config().get_tsflags_option().get_value()) {
if (tsflag == "test") {
std::cout
<< "Test mode enabled: Only package downloads, pgp key installations and transaction checks "
"will be performed."
<< std::endl;
if (base.get_config().get_downloadonly_option().get_value()) {
std::cout << "The operation will only download packages for the transaction." << std::endl;
} else {
for (const auto & tsflag : base.get_config().get_tsflags_option().get_value()) {
if (tsflag == "test") {
std::cout << "Test mode enabled: Only package downloads, pgp key installations and transaction "
"checks "
"will be performed."
jan-kolarik marked this conversation as resolved.
Show resolved Hide resolved
<< std::endl;
}
}
}

Expand Down