UPDATE_STAMP=/var/lib/apt/periodic/update-stamp
if check_stamp $UPDATE_STAMP $UpdateInterval; then
if apt-get -qq update 2>/dev/null; then
- if which dbus-send >/dev/null; then
- dbus-send --system / app.apt.dbus.updated boolean:true
- fi
+ if pidof dbus-daemon >/dev/null; then
+ dbus-send --system / app.apt.dbus.updated boolean:true
+ fi
update_stamp $UPDATE_STAMP
fi
fi
[ Otavio Salvador ]
* Apply patch to avoid truncating of arbitrary files. Thanks to Bryan
Donlan <bdonlan@fushizen.net> for the patch. Closes: #482476
+ * Avoid using dbus if dbus-daemon isn't running. Closes: #438803
-- Christian Perrier <bubulle@debian.org> Sun, 04 May 2008 08:31:06 +0200