diff options
author | Daniel Baumann <daniel@debian.org> | 2011-04-23 17:14:21 +0200 |
---|---|---|
committer | Daniel Baumann <daniel@debian.org> | 2011-04-23 17:27:05 +0200 |
commit | fb1e45aaeb04688557dbdd20ebf89e3785a16bd5 (patch) | |
tree | 54573714be61b1c388f26b6250f347e76d769373 /scripts/build | |
parent | 745ffde6ff3a11027ee6e61d5e6f791f971411b3 (diff) | |
download | vyos-live-build-fb1e45aaeb04688557dbdd20ebf89e3785a16bd5.tar.gz vyos-live-build-fb1e45aaeb04688557dbdd20ebf89e3785a16bd5.zip |
Adding workaround for apt not respecting pinning on the fly.
Diffstat (limited to 'scripts/build')
-rwxr-xr-x | scripts/build/lb_chroot_apt | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/scripts/build/lb_chroot_apt b/scripts/build/lb_chroot_apt index 240fcecd1..edfc033c6 100755 --- a/scripts/build/lb_chroot_apt +++ b/scripts/build/lb_chroot_apt @@ -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 ;; |