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

Extend dbus-announce plugin #3532

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

mcrha
Copy link

@mcrha mcrha commented Jan 23, 2025

The first commit only adds an existing argument (res) into the D-Bus message - I suppose it had been intended to provide a transaction result as well.

The second commit adds also information about the changes, like the operation and the NEVRA of the transaction packages. This implementation can have one downside, with many packages the D-Bus message will be large. I can add some limit, like up to 100 packages or so, and pass an empty array in such case. Using file descriptors feels like an overhead for this information.


My intention is to use the details about the transaction in the gnome-software, to update its GUI only if any of the touched packages corresponds to an application covered by the app itself. While it's relatively easy to get to the list of the installed packages, the removals are not recorded, those transactions are lost immediately (I guess, when a transaction does both install and remove, then only install is recorded anyway). This can have a significant performance benefit for the gnome-software, because currently it can only tell the app to "reload everything", which is a lot of work for the CPU & co..

mcrha added 2 commits January 23, 2025 09:44
The parameter exists, but it was not used at all.
Add also information about the operation and the package NEVRA into
the D-Bus message. It's relatively simple to get information about
installed packages, but the removals are not recorded anywhere, thus
it's impossible to know what had been removed within the transaction.
@mcrha mcrha requested a review from a team as a code owner January 23, 2025 09:22
@mcrha mcrha requested review from dmnks and removed request for a team January 23, 2025 09:22
@pmatilai pmatilai requested a review from ffesti January 23, 2025 09:29
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.

1 participant