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

Tree @3efe0ac (Download .tar.gz)

0410-update-apt-xapian-index.hook.chroot @3efe0acraw · 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 command -v update-apt-xapian-index >/dev/null
then
	PYTHONDONTWRITEBYTECODE=1 update-apt-xapian-index --force --quiet
fi