From 0592c21f3db581e9910c3fc8ac9f5a603551b0bc Mon Sep 17 00:00:00 2001 From: Michael Prokop Date: Wed, 10 Jun 2015 00:02:02 +0200 Subject: [PATCH 1/1] Drop --force-yes option from chroot-scripts' apt-get usage The --force-yes option may lead to installation of packages that fail GPG verification checks. If someone really needs the --force-yes option (to actually really force package installation) then this should be handled via DPKG_OPTIONS instead. Fixes #62 @ github --- chroot-script | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/chroot-script b/chroot-script index 0e31f70..e14ca21 100755 --- a/chroot-script +++ b/chroot-script @@ -36,9 +36,9 @@ if [ -x /usr/bin/aptitude ] ; then APTUPGRADE="aptitude -y safe-upgrade $DPKG_OPTIONS" fi else - APTINSTALL="apt-get --force-yes -y --no-install-recommends install $DPKG_OPTIONS" + APTINSTALL="apt-get -y --no-install-recommends install $DPKG_OPTIONS" APTUPDATE="apt-get update $DPKG_OPTIONS" - APTUPGRADE="apt-get --force-yes -y upgrade $DPKG_OPTIONS" + APTUPGRADE="apt-get -y upgrade $DPKG_OPTIONS" fi if [ -z "$STAGES" ] ; then -- 2.1.4