Commit 688a9b2b authored by Dietmar Maurer's avatar Dietmar Maurer

impl. a better way to suppress output from apt-get update.

parent 2faf5b1b
......@@ -275,11 +275,13 @@ __PACKAGE__->register_method({
my $cmd = ['apt-get', 'update'];
push @$cmd, '-qq' if $param->{quiet};
print "starting apt-get update\n" if !$param->{quiet};
PVE::Tools::run_command($cmd);
if ($param->{quiet}) {
PVE::Tools::run_command($cmd, outfunc => sub {}, errfunc => sub {});
} else {
PVE::Tools::run_command($cmd);
}
my $pkglist = &$update_pve_pkgstatus();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment