diff --git a/scripts/chroot.sh b/scripts/chroot.sh index b76cea9bfce7a318f66c8e3cbee3f63d47e9c1ef..7409038fb10458aa5adeee7fe21320536506e83c 100755 --- a/scripts/chroot.sh +++ b/scripts/chroot.sh @@ -482,8 +482,14 @@ cat > ${DIR}/chroot_script.sh <<-__EOF__ run_deborphan () { apt-get -y --force-yes install deborphan + # Prevent deborphan from removing explicitly required packages + deborphan -A ${deb_additional_pkgs} ${repo_external_pkg_list} ${deb_include} + deborphan | xargs apt-get -y remove --purge + # Purge keep file + deborphan -Z + #FIXME, only tested on wheezy... apt-get -y remove deborphan dialog gettext-base libasprintf0c2 --purge apt-get clean