From 7822f141da0200d52d166d6569129e3350016955 Mon Sep 17 00:00:00 2001 From: Otavio Salvador Date: Sat, 24 May 2008 11:56:36 -0300 Subject: Avoid using dbus if dbus-daemon isn't running. Closes: #438803 --- debian/apt.cron.daily | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'debian/apt.cron.daily') diff --git a/debian/apt.cron.daily b/debian/apt.cron.daily index 1ca830c93..a87fca79b 100644 --- a/debian/apt.cron.daily +++ b/debian/apt.cron.daily @@ -210,9 +210,9 @@ fi 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 -- cgit v1.2.3