summaryrefslogtreecommitdiff
path: root/share/hooks/normal/0400-update-apt-file-cache.hook.chroot
blob: c83225fe52d4dec3713a9fb377f4bb39b812eaca (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#!/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 command -v apt-file >/dev/null && [ "${LB_APT_INDICES}" = "true" ]
then
	apt-file update
fi