]> git.saurik.com Git - apt.git/blobdiff - debian/apt.cron.daily
Avoid using dbus if dbus-daemon isn't running. Closes: #438803
[apt.git] / debian / apt.cron.daily
index 1ca830c930c5fbc40e8db288519f9b94c9f0994a..a87fca79b2ff70c55b3492428475e27f3e809bd5 100644 (file)
@@ -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