]> git.saurik.com Git - apt.git/commitdiff
Avoid using dbus if dbus-daemon isn't running. Closes: #438803
authorOtavio Salvador <otavio@ossystems.com.br>
Sat, 24 May 2008 14:56:36 +0000 (11:56 -0300)
committerOtavio Salvador <otavio@ossystems.com.br>
Sat, 24 May 2008 14:56:36 +0000 (11:56 -0300)
debian/apt.cron.daily
debian/changelog

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
index 20f9c6a9fc12acdf645c4fb41d5ec55b5cf2de71..9dc7cf40f06b91c47a4e17f398c3ae11e4a5159d 100644 (file)
@@ -30,6 +30,7 @@ apt (0.7.14) UNRELEASED; urgency=low
   [ 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