print /etc/apt/sources.list if apt-get update didn't download anything

This commit is contained in:
Johannes 'josch' Schauer 2018-10-02 04:11:12 +02:00
parent bb2aa6e9fd
commit 1f13d0157b
Signed by untrusted user: josch
GPG key ID: F2CBA5C78FBD83E1

View file

@ -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";
}
}