Commit b6ee868e authored by Wolfgang Link's avatar Wolfgang Link Committed by Dietmar Maurer

Add extra optional list to pveversion

if the packet on the opt list is not installed, it will not shown.
parent 74692ece
......@@ -536,9 +536,12 @@ __PACKAGE__->register_method({
# comment out old packages uses before 4.0
# clvm resource-agents-pve fence-agents-pve vzctl vzprocps vzquota
my @opt_pack = ('zfsutils');
push @list, qw(lvm2 corosync-pve libqb0 pve-cluster qemu-server pve-firmware libpve-common-perl libpve-access-control libpve-storage-perl pve-libspice-server1 vncterm pve-qemu-kvm pve-container pve-firewall pve-ha-manager ksm-control-daemon glusterfs-client lxc-pve lxcfs cgmanager);
@list = (@list, @opt_pack);
my $pkglist = [];
my (undef, undef, $kernel_release) = POSIX::uname();
......@@ -567,6 +570,9 @@ __PACKAGE__->register_method({
} elsif ($pkgname eq 'proxmox-ve') {
$res->{RunningKernel} = $kernel_release;
}
if (grep( /^$pkgname$/, @opt_pack)) {
next if $res->{CurrentState} eq 'NotInstalled';
}
push @$pkglist, $res;
}
......
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