Codebase list live-build / upstream/5.0_a11 share / hooks / normal / 0400-update-apt-file-cache.hook.chroot
upstream/5.0_a11

Tree @upstream/5.0_a11 (Download .tar.gz)

0400-update-apt-file-cache.hook.chroot @upstream/5.0_a11raw · history · blame

#!/bin/sh

set -e

# Update the Apt File cache.
#
# This allows to use using apt-file out-of-the-box.

. /live-build/config/binary

if [ -x /usr/bin/apt-file ] && [ "${LB_APT_INDICES}" = "true" ]
then
	apt-file update
fi