From c2d0fdd1abffa6701422f4b722b994ab3c43262b Mon Sep 17 00:00:00 2001 From: Michael Vogt Date: Mon, 30 Mar 2009 15:16:00 +0200 Subject: run update-apt-xapian-index (with ionice) to ensure that the index is up-to-date when synaptic is run (LP: #288797) --- debian/apt.cron.daily | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'debian/apt.cron.daily') diff --git a/debian/apt.cron.daily b/debian/apt.cron.daily index d980efd7d..954f0bfc9 100644 --- a/debian/apt.cron.daily +++ b/debian/apt.cron.daily @@ -237,6 +237,11 @@ if check_stamp $UPDATE_STAMP $UpdateInterval; then if which dbus-send >/dev/null; then dbus-send --system / app.apt.dbus.updated boolean:true 2>/dev/null || true fi + # now run apt-xapian-index if it is installed to ensure the index + # is up-to-date + if [ -x /usr/sbin/update-apt-xapian-index ]; then + ionice -c3 update-apt-xapian-index -q + fi update_stamp $UPDATE_STAMP fi fi -- cgit v1.2.3