From cd2618e5d51e24888540f6bd0c7ee36bbe0086b4 Mon Sep 17 00:00:00 2001
From: Daniel Baumann <daniel@debian.org>
Date: Sun, 18 Nov 2007 11:09:55 +0100
Subject: Adding an upgrade and dist-upgrade to lh_chroot_sources, so that
security updates gets pulled into the base system. Thanks to Kai Hendry
<hendry@iki.fi>.
---
helpers/lh_chroot_sources | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/helpers/lh_chroot_sources b/helpers/lh_chroot_sources
index f1bab8e..25713a1 100755
--- a/helpers/lh_chroot_sources
+++ b/helpers/lh_chroot_sources
@@ -151,6 +151,8 @@ case "${1}" in
if [ "${LH_APT}" = "apt" ] || [ "${LH_APT}" = "apt-get" ]
then
Chroot "apt-get update"
+ Chroot "apt-get --yes upgrade"
+ Chroot "apt-get --yes dist-upgrade"
elif [ "${LH_APT}" = "aptitude" ]
then
if [ ! -x /usr/bin/aptitude ]
@@ -160,6 +162,8 @@ case "${1}" in
fi
Chroot "aptitude update"
+ Chroot "aptitude --assume-yes upgrade"
+ Chroot "aptitude --assume-yes dist-upgrade"
fi
# Installing keyring packages
--
cgit v1.0