]> git.proxmox.com Git - pve-manager.git/commitdiff
pveversion: fix removed packages with residual configs
authorThomas Lamprecht <t.lamprecht@proxmox.com>
Tue, 3 Dec 2019 12:50:16 +0000 (13:50 +0100)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Tue, 3 Dec 2019 13:12:50 +0000 (14:12 +0100)
Those ain't 'not correctly installed', so do not suggest the user
that.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
bin/pveversion

index bed349e8a06de80de8e2317eb1427a0b9a251da1..591f63e7b1cfe7275a4ae099f1b46d21c56ca154 100755 (executable)
@@ -24,6 +24,8 @@ sub print_status {
     my $version = "not correctly installed";
     if ($pkginfo->{OldVersion} && $pkginfo->{CurrentState} eq 'Installed') {
        $version = $pkginfo->{OldVersion};
+    } elsif ($pkginfo->{CurrentState} eq 'ConfigFiles') {
+       $version = 'residual config';
     }
 
     if ($pkginfo->{RunningKernel}) {