Adding hook for calling update-apt-xapian-index, thanks to Colin Watson <cjwatson@ubuntu.com> (Closes: #627716).

This commit is contained in:
Daniel Baumann 2011-07-18 15:44:33 +02:00
parent 9a6ae81a07
commit 285f8d50fd
1 changed files with 14 additions and 0 deletions

View File

@ -0,0 +1,14 @@
#!/bin/sh
set -e
# Update the Apt Xapian index.
#
# The package would do this itself, but (a) it checks policy-rc.d which says it
# is not allowed to, and (b) it wants to build the index in the background which
# will be racy in the context of live-build.
if [ -x /usr/sbin/update-apt-xapian-index ]
then
/usr/sbin/update-apt-xapian-index --force --quiet
fi