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

Advisory command for dnfdaemon #688

Merged
merged 8 commits into from
Aug 10, 2023
Merged

Advisory command for dnfdaemon #688

merged 8 commits into from
Aug 10, 2023

Conversation

m-blaha
Copy link
Member

@m-blaha m-blaha commented Jun 30, 2023

This PR implements Advisory interface for dnf5daemon-server. Also dnf5daemon-client advisory list and dnf5daemon-client advisory info commands were implemented.

Tests: rpm-software-management/ci-dnf-stack#1356

Resolves: #451
Resolves: https://bugzilla.redhat.com/show_bug.cgi?id=2184329

@Conan-Kudo
Copy link
Member

This will be needed to enable moving dnfdragora from the old dnfdaemon to this one.

@m-blaha m-blaha force-pushed the mblaha/daemon-updateinfo branch 3 times, most recently from 3d51882 to 435640d Compare August 2, 2023 11:17
@m-blaha m-blaha marked this pull request as ready for review August 2, 2023 11:17
@m-blaha m-blaha self-assigned this Aug 2, 2023
@mcurlej mcurlej added stale and removed stale labels Aug 9, 2023
@kontura kontura self-requested a review August 9, 2023 08:54
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.

I have just a few minor notes.

include/libdnf5-cli/output/advisorylist.hpp Outdated Show resolved Hide resolved
dnf5daemon-server/advisory.cpp Outdated Show resolved Hide resolved
Comment on lines +110 to +111
collection["packages"] = std::move(packages);
collection["modules"] = std::move(modules);
Copy link
Contributor

Choose a reason for hiding this comment

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

Just a note: Clang is warning here that: Passing result of std::move() as a const reference argument; no move will actually happen.
If I understand correctly this is because it is assigning to sdbus::Variant and it doesn't have a move constructor.
Thought I don't think its causing any problems.

Copy link
Member Author

Choose a reason for hiding this comment

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

Hm, I cannot see the warning (I'm on F38).

Copy link
Contributor

Choose a reason for hiding this comment

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

Sorry, its from clang-tidy not a regular clang compile.

dnf5daemon-server/services/advisory/advisory.cpp Outdated Show resolved Hide resolved
The patch unifies dnf5daemon-client behavior with dnf5.
Thiw way the same output function can by used by both dnf5 and
dnf5daemon-client.
Provides method to get a list of update advisories.
The change enables "dnf5daemon-client advisory info" to use the same
code as "dnf5 advisory info" for printing outputs.
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.

The build passes locally on rawhide.
The failing rawhide COPR build is unrelated.

@kontura kontura added this pull request to the merge queue Aug 10, 2023
Merged via the queue into main with commit 5fa51f6 Aug 10, 2023
4 of 6 checks passed
@kontura kontura deleted the mblaha/daemon-updateinfo branch August 10, 2023 11:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

Bug 2184329 - daemon: API to get severity, changelog, bug/CVE refs, etc. of available updates
4 participants