forked from josch/mmdebstrap
also clean package lists and apt cache from sources.d directory
This commit is contained in:
parent
dc7663b3a8
commit
61db086921
1 changed files with 4 additions and 1 deletions
|
@ -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: $!";
|
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...";
|
info "cleaning package lists and apt cache...";
|
||||||
run_apt_progress({
|
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},
|
CHDIR => $options->{root},
|
||||||
});
|
});
|
||||||
run_apt_progress({ ARGV => ['apt-get', 'clean'], CHDIR => $options->{root} });
|
run_apt_progress({ ARGV => ['apt-get', 'clean'], CHDIR => $options->{root} });
|
||||||
|
|
Loading…
Reference in a new issue