summaryrefslogtreecommitdiff
path: root/share/hooks/normal/0410-update-apt-xapian-index.hook.chroot
blob: 93801e511a21a41173255786e176278004c69619 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
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 [ $(which update-apt-xapian-index) ]
then
	PYTHONDONTWRITEBYTECODE=1 update-apt-xapian-index --force --quiet
fi