From 61db086921731679239e75f704c6967ba9688743 Mon Sep 17 00:00:00 2001 From: Johannes 'josch' Schauer Date: Mon, 6 Jan 2020 12:44:29 +0100 Subject: [PATCH] also clean package lists and apt cache from sources.d directory --- mmdebstrap | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/mmdebstrap b/mmdebstrap index 1b3dfd7..fc42783 100755 --- a/mmdebstrap +++ b/mmdebstrap @@ -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} });