Adding workaround for apt not respecting pinning on the fly.

This commit is contained in:
Daniel Baumann 2011-04-23 17:14:21 +02:00
parent 745ffde6ff
commit fb1e45aaeb
1 changed files with 8 additions and 0 deletions

View File

@ -133,6 +133,14 @@ case "${1}" in
esac
fi
# Rebuild apt indices from scratch.
# Due to the fact that apt doesn't understand pinning on the
# fly, we need to manuall remove the cached indices and fetch
# them again.
rm -f chroot/var/cache/apt/* > /dev/null 2>&1 || true
rm -f chroot/var/lib/apt/lists/* > /dev/null 2>&1 || true
Chroot chroot "apt-get ${APT_OPTIONS} update"
# Creating stage file
Create_stagefile .stage/chroot_apt
;;