diff options
author | Otavio Salvador <otavio@ossystems.com.br> | 2008-05-24 11:56:36 -0300 |
---|---|---|
committer | Otavio Salvador <otavio@ossystems.com.br> | 2008-05-24 11:56:36 -0300 |
commit | 7822f141da0200d52d166d6569129e3350016955 (patch) | |
tree | 097411bd4a35c05a24a94aa7ab49dfe14ebfa048 | |
parent | f659b39ab985d28e4b6618a1146ca8569abac253 (diff) | |
download | apt-7822f141da0200d52d166d6569129e3350016955.tar.gz |
Avoid using dbus if dbus-daemon isn't running. Closes: #438803
-rw-r--r-- | debian/apt.cron.daily | 6 | ||||
-rw-r--r-- | debian/changelog | 1 |
2 files changed, 4 insertions, 3 deletions
diff --git a/debian/apt.cron.daily b/debian/apt.cron.daily index 1ca830c9..a87fca79 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 diff --git a/debian/changelog b/debian/changelog index 20f9c6a9..9dc7cf40 100644 --- a/debian/changelog +++ b/debian/changelog @@ -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 |