From 1f13d0157bc8364ac491203a6a9156a78f6228a9 Mon Sep 17 00:00:00 2001 From: Johannes 'josch' Schauer Date: Tue, 2 Oct 2018 04:11:12 +0200 Subject: [PATCH] print /etc/apt/sources.list if apt-get update didn't download anything --- mmdebstrap | 2 ++ 1 file changed, 2 insertions(+) diff --git a/mmdebstrap b/mmdebstrap index 5726e2b..09785d0 100755 --- a/mmdebstrap +++ b/mmdebstrap @@ -718,6 +718,8 @@ sub setup { chomp (my $indextargets = do { local $/; <$fh> }); close $fh; if ($indextargets eq '') { + print STDERR "content of /etc/apt/sources.list:\n"; + copy("$options->{root}/etc/apt/sources.list", *STDERR); die "apt-get update didn't download anything"; } }