Codebase list live-build / 8475f9c5-0253-4e2e-8ca2-2452f010d466/main share / hooks / normal / 0400-update-apt-file-cache.hook.chroot
8475f9c5-0253-4e2e-8ca2-2452f010d466/main

Tree @8475f9c5-0253-4e2e-8ca2-2452f010d466/main (Download .tar.gz)

0400-update-apt-file-cache.hook.chroot @8475f9c5-0253-4e2e-8ca2-2452f010d466/mainraw · 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