-
Notifications
You must be signed in to change notification settings - Fork 80
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
Conversation
7397fe7
to
de017f0
Compare
This will be needed to enable moving dnfdragora from the old dnfdaemon to this one. |
3d51882
to
435640d
Compare
435640d
to
04320d8
Compare
There was a problem hiding this 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.
collection["packages"] = std::move(packages); | ||
collection["modules"] = std::move(modules); |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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).
There was a problem hiding this comment.
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.
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.
63c0005
to
9cb00c1
Compare
There was a problem hiding this 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.
This PR implements Advisory interface for dnf5daemon-server. Also
dnf5daemon-client advisory list
anddnf5daemon-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