diff options
author | Daniel Baumann <daniel@debian.org> | 2011-07-18 15:44:33 +0200 |
---|---|---|
committer | Daniel Baumann <daniel@debian.org> | 2011-07-18 15:47:37 +0200 |
commit | 285f8d50fd530c75d1a5fa35e557348a1ef5cc28 (patch) | |
tree | e054965e1d79f579bb82aed01a9ba3e7b91b388a /share | |
parent | 9a6ae81a076c04355f26bc6692394315ac603b44 (diff) | |
download | vyos-live-build-285f8d50fd530c75d1a5fa35e557348a1ef5cc28.tar.gz vyos-live-build-285f8d50fd530c75d1a5fa35e557348a1ef5cc28.zip |
Adding hook for calling update-apt-xapian-index, thanks to Colin Watson <cjwatson@ubuntu.com> (Closes: #627716).
Diffstat (limited to 'share')
-rwxr-xr-x | share/hooks/update-apt-xapian-index.chroot | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/share/hooks/update-apt-xapian-index.chroot b/share/hooks/update-apt-xapian-index.chroot new file mode 100755 index 000000000..f93c04266 --- /dev/null +++ b/share/hooks/update-apt-xapian-index.chroot @@ -0,0 +1,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 [ -x /usr/sbin/update-apt-xapian-index ] +then + /usr/sbin/update-apt-xapian-index --force --quiet +fi |