Codebase list live-build / b6004d1 share / hooks / 0410-update-apt-xapian-index.hook.chroot
b6004d1

Tree @b6004d1 (Download .tar.gz)

0410-update-apt-xapian-index.hook.chroot @b6004d1raw · history · blame

#!/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
	PYTHONDONTWRITEBYTECODE=1 /usr/sbin/update-apt-xapian-index --force --quiet
fi