aboutsummaryrefslogtreecommitdiffstats
path: root/Rpmdrake
diff options
context:
space:
mode:
authorOlivier Blin <oblin@mandriva.com>2009-04-28 16:13:58 +0000
committerOlivier Blin <oblin@mandriva.com>2009-04-28 16:13:58 +0000
commite1e644ae896f70a9335e9417cd76af4460811e3b (patch)
tree9a1544fc37a8b3bfca8dbadc691fdf3a8116657c /Rpmdrake
parent34e8490ae808c072df31532925a95df0d19c84ff (diff)
downloadrpmdrake-e1e644ae896f70a9335e9417cd76af4460811e3b.tar
rpmdrake-e1e644ae896f70a9335e9417cd76af4460811e3b.tar.gz
rpmdrake-e1e644ae896f70a9335e9417cd76af4460811e3b.tar.bz2
rpmdrake-e1e644ae896f70a9335e9417cd76af4460811e3b.tar.xz
rpmdrake-e1e644ae896f70a9335e9417cd76af4460811e3b.zip
fix sort usage, ask_remove was being assigned: [ $urpm, $urpm->{state} ]
Diffstat (limited to 'Rpmdrake')
-rw-r--r--Rpmdrake/pkg.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/Rpmdrake/pkg.pm b/Rpmdrake/pkg.pm
index b18ecb52..a0b53bd5 100644
--- a/Rpmdrake/pkg.pm
+++ b/Rpmdrake/pkg.pm
@@ -651,7 +651,7 @@ sub perform_installation { #- (partially) duplicated from /usr/sbin/urpmi :-(
my @to_install = @{$urpm->{depslist}}[keys %{$state->{selected}}];
my @pkgs = map { scalar($_->fullname) } sort(grep { $_->flag_selected } @to_install);
- @{$urpm->{ask_remove}} = sort urpm::select::removed_packages($urpm, $urpm->{state});
+ @{$urpm->{ask_remove}} = sort(urpm::select::removed_packages($urpm, $urpm->{state}));
my @to_remove = map { if_($pkgs->{$_}{selected} && !$pkgs->{$_}{pkg}->flag_upgrade, $pkgs->{$_}{urpm_name}) } keys %$pkgs;
my $r = format_list(map { scalar(urpm::select::translate_why_removed_one($urpm, $urpm->{state}, $_)) } @to_remove);