summaryrefslogtreecommitdiffstats
path: root/inst
diff options
context:
space:
mode:
authorP. J. McDermott <pj@pehjota.net>2018-01-21 17:20:15 (EST)
committer P. J. McDermott <pj@pehjota.net>2018-01-21 17:22:23 (EST)
commit90a4df9a6d2af1e46ebc6e69958192ee6367d46f (patch)
treedbae3df6fcce5eb4f6d08283d0f52bfff344ca59 /inst
parentf07600d357a4104d354f31ba13b6d0c2ef468c86 (diff)
downloadpc-inst-90a4df9a6d2af1e46ebc6e69958192ee6367d46f.zip
pc-inst-90a4df9a6d2af1e46ebc6e69958192ee6367d46f.tar.gz
pc-inst-90a4df9a6d2af1e46ebc6e69958192ee6367d46f.tar.bz2
do_apt_update(), do_locale_setup(), do_user_setup(), do_install_extra(): apt-get clean
Diffstat (limited to 'inst')
-rwxr-xr-xinst4
1 files changed, 4 insertions, 0 deletions
diff --git a/inst b/inst
index 21bd96d..49126ab 100755
--- a/inst
+++ b/inst
@@ -275,6 +275,7 @@ do_apt_update()
in_target apt-get update || return 1
in_target apt-get -q -y dist-upgrade || return 1
+ in_target apt-get clean || return 1
return 0
}
@@ -289,6 +290,7 @@ do_locale_setup()
if ! [ "x${locale}" = 'xC' ] || ! [ "x${supported_locales}" = 'x' ]
then
in_target apt-get -q -y install locales
+ in_target apt-get clean || return 1
gen=false
for l in $(printf '%s\n' "${locale}" ${supported_locales} | \
@@ -347,6 +349,7 @@ do_user_setup()
"/home/${user_name}" || return 1
if ! ${root_login}; then
in_target apt-get -q -y install sudo || return 1
+ in_target apt-get clean || return 1
case " ${user_groups} " in
*' sudo '*);;
*)
@@ -397,6 +400,7 @@ do_install_extra()
i=0
while [ ${i} -lt 3 ]; do
in_target apt-get -q -y install ${postinst_pkgs} && return 0
+ in_target apt-get clean || return 1
i=$((${i} + 1))
done