diff options
author | Thierry Vignaud <tv@mandriva.org> | 2007-03-06 11:23:52 +0000 |
---|---|---|
committer | Thierry Vignaud <tv@mandriva.org> | 2007-03-06 11:23:52 +0000 |
commit | 982d60923fd1d3f2771933ab6399ceb6c43528de (patch) | |
tree | 9147119e815330a42dc048bc373b0204539fa970 | |
parent | 5f68184dfdbcc983ab3ce12421263b43088d0322 (diff) | |
download | rpmdrake-982d60923fd1d3f2771933ab6399ceb6c43528de.tar rpmdrake-982d60923fd1d3f2771933ab6399ceb6c43528de.tar.gz rpmdrake-982d60923fd1d3f2771933ab6399ceb6c43528de.tar.bz2 rpmdrake-982d60923fd1d3f2771933ab6399ceb6c43528de.tar.xz rpmdrake-982d60923fd1d3f2771933ab6399ceb6c43528de.zip |
(perform_removal) do nothing if nothing to remove
-rwxr-xr-x | Rpmdrake/pkg.pm | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Rpmdrake/pkg.pm b/Rpmdrake/pkg.pm index 84572fde..e1db6e97 100755 --- a/Rpmdrake/pkg.pm +++ b/Rpmdrake/pkg.pm @@ -789,6 +789,8 @@ you may now inspect some in order to take actions:"), sub perform_removal { my ($urpm, $pkgs) = @_; my @toremove = map { if_($pkgs->{$_}{selected}, $pkgs->{$_}{urpm_name}) } keys %$pkgs; + return if !@toremove; + my @results; slow_func_statusbar( N("Please wait, removing packages..."), |