mirror of
https://git.proxmox.com/git/pve-manager
synced 2025-08-07 04:18:39 +00:00
impl. a better way to suppress output from apt-get update.
This commit is contained in:
parent
a137235a4a
commit
f460dc12b1
@ -275,11 +275,13 @@ __PACKAGE__->register_method({
|
|||||||
|
|
||||||
my $cmd = ['apt-get', 'update'];
|
my $cmd = ['apt-get', 'update'];
|
||||||
|
|
||||||
push @$cmd, '-qq' if $param->{quiet};
|
|
||||||
|
|
||||||
print "starting apt-get update\n" 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();
|
my $pkglist = &$update_pve_pkgstatus();
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user