run update-apt-xapian-index (with ionice) to ensure that
authorMichael Vogt <michael.vogt@ubuntu.com>
Mon, 30 Mar 2009 13:16:00 +0000 (15:16 +0200)
committerMichael Vogt <michael.vogt@ubuntu.com>
Mon, 30 Mar 2009 13:16:00 +0000 (15:16 +0200)
the index is up-to-date when synaptic is run (LP: #288797)

debian/apt.cron.daily
debian/changelog

index d980efd..954f0bf 100644 (file)
@@ -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
index f03be0c..6a3d14d 100644 (file)
@@ -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