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

Debuginfo-install command #1566

Merged
merged 4 commits into from
Jul 1, 2024
Merged

Conversation

j-mracek
Copy link
Contributor

@j-mracek j-mracek commented Jul 1, 2024

Not delivered in this PR:

  • Documentation
  • Reporting when binary RPM does not have available debug package

Tests: Enable several tests for debuginfo-install command

Closes: #846

It is required for the debuginfo command and it uses the same logik
like in DNF4
@m-blaha m-blaha self-assigned this Jul 1, 2024
@@ -74,6 +75,46 @@ void add_obsoletes_to_data(const libdnf5::rpm::PackageQuery & base_query, libdnf
data |= obsoletes_query;
}

/// Add install jpb of debug packages for installed packages to Goal
Copy link
Member

Choose a reason for hiding this comment

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

a typo: jpb -> job

patterns_to_debuginfo_install_options = parser.add_new_values();
auto patterns_arg = parser.add_new_positional_arg(
"patterns",
ArgumentParser::PositionalArg::UNLIMITED,
Copy link
Member

Choose a reason for hiding this comment

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

I'd prefer ArgumentParser::PositionalArg::AT_LEAST_ONE. I think dnf5 debuginfo-install without a spec does not make much sense.

It allows to use it from other interface then only from DNF5
It also describes dropping autoenable debug repositories for other commands.
Copy link
Member

@m-blaha m-blaha left a comment

Choose a reason for hiding this comment

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

Thank you!

@m-blaha m-blaha added this pull request to the merge queue Jul 1, 2024
Merged via the queue into rpm-software-management:main with commit b58dd8e Jul 1, 2024
1 of 15 checks passed
@travier
Copy link

travier commented Jul 22, 2024

Hey folks, we are getting close to Fedora 41 freeze. Could we get a new release of dnf5 with this code? Thanks

@jan-kolarik
Copy link
Member

@evan-goode Hi Evan, could you please trigger a new dnf5 release including the debuginfo-install functionality?

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 debuginfo-install Plugin
4 participants