Adding hook to update apt-file cache (Closes: #636440).

This commit is contained in:
Daniel Baumann 2011-08-04 21:47:46 +02:00
parent a56cc98f12
commit f3fd3dc2a9
2 changed files with 18 additions and 2 deletions

View File

@ -584,13 +584,15 @@ Set_defaults ()
# Setting distribution hooks
case "${LB_MODE}" in
*)
LB_CHROOT_HOOKS="${LB_CHROOT_HOOKS:-update-apt-xapian-index \
LB_CHROOT_HOOKS="${LB_CHROOT_HOOKS:-update-apt-file-cache \
update-apt-xapian-index \
update-mlocate-database \
remove-python-py}"
;;
kubuntu)
LB_CHROOT_HOOKS="${LB_CHROOT_HOOKS:-update-apt-xapian-index \
LB_CHROOT_HOOKS="${LB_CHROOT_HOOKS:-update-apt-file-cache \
update-apt-xapian-index \
update-mlocate-database \
remove-gnome-icon-cache \
remove-python-py}"

View File

@ -0,0 +1,14 @@
#!/bin/sh
set -e
# Update the Apt File cache.
#
# This allows to use using apt-file out-of-the-box.
. /chroot/root/config/binary
if [ -x /usr/bin/apt-file ] && [ "${LB_APT_INDICES}" = "true" ]
then
apt-file update
fi