]> git.saurik.com Git - apt.git/commitdiff
debian/apt.cron.daily: test for both existance of dbus-send and if dbus-daemon is...
authorMichael Vogt <michael.vogt@ubuntu.com>
Wed, 28 May 2008 12:06:13 +0000 (14:06 +0200)
committerMichael Vogt <michael.vogt@ubuntu.com>
Wed, 28 May 2008 12:06:13 +0000 (14:06 +0200)
debian/apt.cron.daily

index a87fca79b2ff70c55b3492428475e27f3e809bd5..84d3afe1d244daa83cf637e9c7c60c770b1ee9c5 100644 (file)
@@ -210,7 +210,7 @@ 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 pidof dbus-daemon >/dev/null; then
+        if which dbus-send >/dev/null && pidof dbus-daemon >/dev/null; then
             dbus-send --system / app.apt.dbus.updated boolean:true
         fi
         update_stamp $UPDATE_STAMP