diff options
Diffstat (limited to 'Rpmdrake/pkg.pm')
-rw-r--r-- | Rpmdrake/pkg.pm | 15 |
1 files changed, 6 insertions, 9 deletions
diff --git a/Rpmdrake/pkg.pm b/Rpmdrake/pkg.pm index 6eb44840..0bf3dcef 100644 --- a/Rpmdrake/pkg.pm +++ b/Rpmdrake/pkg.pm @@ -515,18 +515,15 @@ sub get_pkgs { foreach my $pkg_id ($medium->{start} .. $medium->{end}) { my $pkg = $urpm->{depslist}[$pkg_id]; $pkg->flag_upgrade or next; - my $selected = 0; my $name = urpm_name($pkg); - - if (member($name, @requested)) { - # selecting updates by default but skipped ones (MandrivaUpdate only): - $selected = member($name, @requested_strict); - push @updates, $name; - } - $all_pkgs{$name} = { selected => $selected, pkg => $pkg, - }; + $all_pkgs{$name} = { pkg => $pkg }; } } + @updates = @requested; + # selecting updates by default but skipped ones (MandrivaUpdate only): + foreach (@requested_strict) { + $all_pkgs{$_}{selected} = 1; + } $all_pkgs{$_}{pkg}->set_flag_installed foreach @installed_pkgs; |