Bug#636440: Info received (live-build: Regenerate apt-file cache)
I have noticed that I have made a mistake in patch for regenerating apt-file cache. I am attaching fixed one.
--- live-build-3.0~a25/scripts/build/lb_chroot_archives.orig 2011-08-03 03:01:22.000000000 +0200
+++ live-build-3.0~a25/scripts/build/lb_chroot_archives 2011-08-03 15:00:01.000000000 +0200
@@ -797,6 +797,12 @@
rm -rf chroot/var/cache/apt
mkdir -p chroot/var/cache/apt/archives/partial
+ # This one may look ugly, but we need to rebuild apt-file cache with final repositories in place.
+ if [ "${LB_BINARY_INDICES}" = "true" ] && [ -x chroot/usr/bin/apt-file ]
+ then
+ Chroot chroot "apt-file update"
+ fi
+
# Cleaning apt package lists
if [ "${LB_APT_INDICES}" = "false" ]
then
Reply to: