Adding hook to update apt-file cache (Closes: #636440).
This commit is contained in:
parent
a56cc98f12
commit
f3fd3dc2a9
|
@ -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}"
|
||||
|
|
|
@ -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
|
Loading…
Reference in New Issue