diff options
author | Daniel Baumann <daniel@debian.org> | 2008-09-03 21:56:56 +0200 |
---|---|---|
committer | Daniel Baumann <daniel@debian.org> | 2011-03-09 19:03:40 +0100 |
commit | 3c48eb2a5abc3de504f9a5f96a959a06afbf1100 (patch) | |
tree | 83bd92ab3a81548fb39a7ed46c56aad65ecd64e1 /helpers | |
parent | f9b891c9d6a1a8cbf3ce9921a5af664989980ec3 (diff) | |
download | live-build-3c48eb2a5abc3de504f9a5f96a959a06afbf1100.zip live-build-3c48eb2a5abc3de504f9a5f96a959a06afbf1100.tar.gz |
Fixing a chicken-egg problem with package indices when using minimal/stripped list *and* including local-packages.
Diffstat (limited to 'helpers')
-rwxr-xr-x | helpers/lh_chroot_sources | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/helpers/lh_chroot_sources b/helpers/lh_chroot_sources index 24fe495..f7c4238 100755 --- a/helpers/lh_chroot_sources +++ b/helpers/lh_chroot_sources @@ -103,6 +103,15 @@ case "${1}" in if Find_files chroot/root/local-packages/*.deb then + # If we bootstrapped a minimal chroot, we need + # to install apt-utils before we have have + # completed all the indices. + case "${LH_PACKAGES_LISTS}" in + stripped|minimal) + Chroot "apt-get update" + ;; + esac + # Restoring cache Restore_cache cache/packages_chroot |