2011-07-18 13:44:33 +00:00
|
|
|
#!/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.
|
|
|
|
|
2020-02-22 13:33:01 -01:00
|
|
|
if [ $(which update-apt-xapian-index) ]
|
2011-07-18 13:44:33 +00:00
|
|
|
then
|
2011-07-19 08:08:24 +00:00
|
|
|
PYTHONDONTWRITEBYTECODE=1 /usr/sbin/update-apt-xapian-index --force --quiet
|
2011-07-18 13:44:33 +00:00
|
|
|
fi
|