run apt-cache policy instead of dumping sources.list
This commit is contained in:
parent
c45e7d9baf
commit
efaea907e9
1 changed files with 2 additions and 2 deletions
|
@ -1507,9 +1507,9 @@ sub setup {
|
||||||
);
|
);
|
||||||
close $fh;
|
close $fh;
|
||||||
if ($indextargets eq '') {
|
if ($indextargets eq '') {
|
||||||
info "content of /etc/apt/sources.list:";
|
|
||||||
if ($verbosity_level >= 1) {
|
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";
|
error "apt-get update didn't download anything";
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue