summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Vogt <michael.vogt@ubuntu.com>2009-03-30 15:16:00 +0200
committerMichael Vogt <michael.vogt@ubuntu.com>2009-03-30 15:16:00 +0200
commitc2d0fdd1abffa6701422f4b722b994ab3c43262b (patch)
treeb105bd7f86e4460a209bb41bb66cbd90f5313bac
parent5f71505b4f885ecd045c6fe40598e22ef9f328b7 (diff)
run update-apt-xapian-index (with ionice) to ensure that
the index is up-to-date when synaptic is run (LP: #288797)
-rw-r--r--debian/apt.cron.daily5
-rw-r--r--debian/changelog2
2 files changed, 7 insertions, 0 deletions
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
diff --git a/debian/changelog b/debian/changelog
index f03be0cd5..6a3d14ddc 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -10,6 +10,8 @@ apt (0.7.20.2ubuntu5) jaunty; urgency=low
- do not clutter cron mail with bogus gconftool messages
(LP: #223502)
- merge fix for cache locking from debian (closes: #459344)
+ - run update-apt-xapian-index (with ionice) to ensure that
+ the index is up-to-date when synaptic is run (LP: #288797)
-- Michael Vogt <michael.vogt@ubuntu.com> Mon, 30 Mar 2009 13:22:28 +0200