Age | Commit message (Collapse) | Author |
|
|
|
Systemd broke dbus for DynamicUsers, as discussed in
https://github.com/systemd/systemd/issues/22737. Although the issue is
avoided when using dbus-broker, I suspect most Arch systems are using
dbus-daemon.
This essentially reverts e0dc7e9879
|
|
This fixes the warning:
DeprecationWarning: Importing dbus.glib to use the GLib main loop with dbus-python is deprecated.
Instead, use this sequence:
from dbus.mainloop.glib import DBusGMainLoop
DBusGMainLoop(set_as_default=True)
import dbus.glib
|
|
This fixes a problem with mirrors.kernel.org redirecting to
mirrors.edge.kernel.org which caused curl to save zero-byte output
files because the response body was zero-byte content.
|
|
|
|
When dbus activation is working the After=avahi-daemon should not be
necessary. However, it appears that dbus activation is only correctly
configured when avahi-daemon is enabled as that's when the appropriate
symlink is created. It would fail with:
Activation via systemd failed for unit 'dbus-org.freedesktop.Avahi.service': Unit dbus-org.freedesktop.Avahi.service not found.
While Requires=avahi-daemon needs to be present for the same reason as
After=, pkgdistcache-daemon does not currently notice if avahi-daemon is
restarted. When Avahi restarts it forgets the previous publishes. So I
work around that by having pkgdistcached restart when avahi-daemon
restarts via Requires=. While I could make pkgdistcache-daemon notice
the restart, it doesn't gain us anything because of the dbus activation
issue.
|
|
|
|
This keeps the cache continually up-to-date as the daemon is provided
updates from Avahi as devices come and go. The daemon automatically
exits after a while to clean itself up.
|
|
|
|
|
|
Instead of searching for the cache, just expect it to be stored in a
well-known location. This also avoids loading a cache created by a
different user, which is a security improvement.
|
|
|
|
HEAD reduces the amount of console spamming and forking for curl.
|
|
|
|
This provides better isolation from other processes that may be running
as nobody.
|
|
The Python exception type seems to be dbus.exceptions.DBusException
(which has an alias at dbus.DBusException), and it is communicating the
dbus-style exception with name org.freedesktop.Avahi.TimeoutError.
|
|
|
|
Although the changes were small, it seems important enough to bump the
minor version.
|
|
|
|
|
|
|
|
|
|
|