[Rpm-maint] [rpm-software-management/rpm] Add dbus-announce plugin (#1255)
Panu Matilainen
notifications at github.com
Tue May 25 09:04:48 UTC 2021
@pmatilai commented on this pull request.
> + return RPMRC_OK;
+
+ /* ...don't notify on test transactions */
+ if (rpmtsFlags(ts) & (RPMTRANS_FLAG_TEST|RPMTRANS_FLAG_BUILD_PROBS))
+ return RPMRC_OK;
+
+ /* ...don't notify on chroot transactions */
+ if (!rstreq(rpmtsRootDir(ts), "/"))
+ return RPMRC_OK;
+
+ dbus_error_init(&err);
+
+ state->bus = dbus_bus_get_private(DBUS_BUS_SYSTEM, &err);
+ if (dbus_error_is_set(&err)) {
+ goto err;
+ }
There's no strict guideline whether to use {} on a one-liner block, but please pick a strategy and use it consistently. There are multiple cases where braces are not used (eg a few lines above), and many cases where they are not, throughout this file.
I personally tend to avoid the the excess {} unless it's needed for readability.
--
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/rpm-software-management/rpm/pull/1255#pullrequestreview-667576193
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rpm.org/pipermail/rpm-maint/attachments/20210525/29af2c16/attachment-0001.html>
More information about the Rpm-maint
mailing list