avahi: Fail immediately if we can't talk to D-Bus or Avahi
authorSimon McVittie <smcv@debian.org>
Fri, 22 Jun 2018 00:10:55 +0000 (01:10 +0100)
committerSimon McVittie <smcv@debian.org>
Sun, 24 Jun 2018 12:04:09 +0000 (13:04 +0100)
commitf5de762126cf4d9108ad1eb4ebd25b0137bbd239
tree601f979c89def1318f590cfe527026957361374d
parent00619be09bda4ba93e7a99c03e885da546f5df00
avahi: Fail immediately if we can't talk to D-Bus or Avahi

We special-case AVAHI_ERR_NO_DAEMON to not cause warnings, but if
we pass AVAHI_CLIENT_NO_FAIL to avahi_client_new, we never actually
see AVAHI_ERR_NO_DAEMON. Instead, we will get AVAHI_ERR_BAD_STATE
when we try to use the client.

Bug: https://github.com/ostreedev/ostree/issues/1618
Signed-off-by: Simon McVittie <smcv@debian.org>
Forwarded: https://github.com/ostreedev/ostree/pull/1639
Applied-upstream: 2018.7, commit:https://github.com/ostreedev/ostree/commit/e120a6b1198aaa785533c76316898f15a804dae1

Gbp-Pq: Name avahi-Fail-immediately-if-we-can-t-talk-to-D-Bus-or-Avahi.patch
src/libostree/ostree-repo-finder-avahi.c