also clean package lists and apt cache from sources.d directory

This commit is contained in:
Johannes 'josch' Schauer 2020-01-06 12:44:29 +01:00
parent dc7663b3a8
commit 61db086921
Signed by untrusted user: josch
GPG key ID: F2CBA5C78FBD83E1

View file

@ -1851,7 +1851,10 @@ sub setup {
unlink "$options->{root}/etc/apt/apt.conf.d/00mmdebstrap" or error "failed to unlink /etc/apt/apt.conf.d/00mmdebstrap: $!";
info "cleaning package lists and apt cache...";
run_apt_progress({
ARGV => ['apt-get', '--option', 'Dir::Etc::SourceList=/dev/null', 'update'],
ARGV => ['apt-get',
'--option', 'Dir::Etc::SourceList=/dev/null',
'--option', 'Dir::Etc::SourceParts=/dev/null',
'update'],
CHDIR => $options->{root},
});
run_apt_progress({ ARGV => ['apt-get', 'clean'], CHDIR => $options->{root} });