Description: Hack to remove the langpacks from 12.04.1 images Author: Stéphane Graber Origin: vendor Last-Update: 2012-08-09 Index: b/scripts/build/lb_chroot_hacks =================================================================== --- a/scripts/build/lb_chroot_hacks +++ b/scripts/build/lb_chroot_hacks @@ -239,6 +239,17 @@ # Remove build systems clock drift echo "0.0 0 0.0" > chroot/etc/adjtime +# Hack to remove some language packs from Ubuntu desktop live images; +# this is 12.04.*-specific and shouldn't be carried forward. +if [ "${LB_ARCHITECTURES}" = "i386" ] && [ "${PROJECT}" = "ubuntu" ]; then + Chroot chroot "apt-get remove --purge -y language-pack-de-base firefox-locale-de" || Echo_warning "Unable to find German langpack on image so can't remove it" + Chroot chroot "apt-get remove --purge -y language-pack-pt-base firefox-locale-pt" || Echo_warning "Unable to find Portuguese langpack on image so can't remove it" +fi +if [ "${LB_ARCHITECTURES}" = "amd64" ] && [ "${PROJECT}" = "ubuntu" ]; then + Chroot chroot "apt-get remove --purge -y language-pack-pt-base firefox-locale-pt" || Echo_warning "Unable to find Portuguese langpack on image so can't remove it" + Chroot chroot "apt-get remove --purge -y language-pack-es-base firefox-locale-es" || Echo_warning "Unable to find Spanish langpack on image so can't remove it" +fi + # Remove cruft rm -f chroot/boot/initrd*bak* rm -f chroot/etc/apt/trusted.gpg~