Codebase list live-build / 683949f share / hooks / normal / 0400-update-apt-file-cache.hook.chroot
683949f

Tree @683949f (Download .tar.gz)

0400-update-apt-file-cache.hook.chroot @683949fraw · 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