run apt-cache policy instead of dumping sources.list

This commit is contained in:
Johannes 'josch' Schauer 2020-01-22 00:28:22 +01:00
parent c45e7d9baf
commit efaea907e9
Signed by untrusted user: josch
GPG key ID: F2CBA5C78FBD83E1

View file

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