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-03-12 04:37:21 -01:00
|
|
|
if command -v update-apt-xapian-index >/dev/null
|
2011-07-18 13:44:33 +00:00
|
|
|
then
|
2020-03-10 04:30:17 -01:00
|
|
|
PYTHONDONTWRITEBYTECODE=1 update-apt-xapian-index --force --quiet
|
2011-07-18 13:44:33 +00:00
|
|
|
fi
|