summarylogtreecommitdiffstats
AgeCommit message (Collapse)Author
2022-09-17python-xdg was renamed to python-pyxdgEric Anderson
2022-09-17Avoid DynamicUser to workaround systemd/dbus regressionEric Anderson
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
2018-08-11Convert to explicit DBusGMainLoopEric Anderson
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
2018-03-19Follow redirects when downloadingEric Anderson
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.
2018-03-01Fix client handling of service removalEric Anderson
2018-03-01Add service dep on avahi-daemonEric Anderson
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.
2018-01-16Add missing except case for file not foundEric Anderson
2017-12-28Bump to 0.5.0 for daemon-based cacheEric Anderson
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.
2017-12-28Remove unnecessary server codeEric Anderson
2017-12-28Update style of source to better match PEP 8Eric Anderson
2017-12-28Bump to 0.4.6 for canonical cache locationEric Anderson
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.
2017-12-27Bump to 0.4.5 for fixed repo index detectionEric Anderson
2017-12-27Bump to 0.4.4 for HEAD checkingEric Anderson
HEAD reduces the amount of console spamming and forking for curl.
2017-12-23Bump to 0.4.3 for ignored local servicesEric Anderson
2017-10-29Use DynamicUser instead of nobodyEric Anderson
This provides better isolation from other processes that may be running as nobody.
2017-09-02Bump to 0.4.2 for fixed TimeoutError exception handlingEric Anderson
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.
2017-08-05Bump to 0.4.1 for client ipv6 colon handling in URLEric Anderson
2017-03-11Port to python3Eric Anderson
Although the changes were small, it seems important enough to bump the minor version.
2017-02-25Add missing dbus-glib dependencyEric Anderson
2017-02-25Disable unnecessary server pollingEric Anderson
2016-12-10Security-harden service fileEric Anderson
2016-12-03Bump to 0.3.2 for ipv6 servingEric Anderson
2015-06-20Initial importEric Anderson