From efaea907e916feac259ff3087c9e8536ab83c6cb Mon Sep 17 00:00:00 2001 From: Johannes 'josch' Schauer Date: Wed, 22 Jan 2020 00:28:22 +0100 Subject: [PATCH] run apt-cache policy instead of dumping sources.list --- mmdebstrap | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mmdebstrap b/mmdebstrap index d2539f4..ab8a4dd 100755 --- a/mmdebstrap +++ b/mmdebstrap @@ -1507,9 +1507,9 @@ sub setup { ); close $fh; if ($indextargets eq '') { - info "content of /etc/apt/sources.list:"; if ($verbosity_level >= 1) { - copy("$options->{root}/etc/apt/sources.list", *STDERR); + 0 == system('apt-cache', 'policy') + or error "apt-cache failed: $?"; } error "apt-get update didn't download anything"; }