Commit 6382dc70 authored by Dietmar Maurer's avatar Dietmar Maurer

apt: only consider installed packages

Because 'apt-get dist-upgrade' also does not consider the package
selection state (as opposed to apt-get dselect-upgrade).
parent a0c49bc8
...@@ -176,8 +176,8 @@ my $update_pve_pkgstatus = sub { ...@@ -176,8 +176,8 @@ my $update_pve_pkgstatus = sub {
foreach my $pkgname (keys %$cache) { foreach my $pkgname (keys %$cache) {
my $p = $cache->{$pkgname}; my $p = $cache->{$pkgname};
next if $p->{SelectedState} ne 'Install'; next if $p->{SelectedState} ne 'Install';
my $current_ver = $p->{CurrentVer}; my $current_ver = $p->{CurrentVer} || next;
my $candidate_ver = $policy->candidate($p); my $candidate_ver = $policy->candidate($p) || next;
if ($current_ver->{VerStr} ne $candidate_ver->{VerStr}) { if ($current_ver->{VerStr} ne $candidate_ver->{VerStr}) {
my $info = $pkgrecords->lookup($pkgname); my $info = $pkgrecords->lookup($pkgname);
......
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