diff options
author | Guillaume Cottenceau <gc@mandriva.com> | 2002-08-05 12:53:03 +0000 |
---|---|---|
committer | Guillaume Cottenceau <gc@mandriva.com> | 2002-08-05 12:53:03 +0000 |
commit | ca3f12f9a6c52fc9fa9c18d802da9ad242a1a7f9 (patch) | |
tree | 1f5945799c9ccdd11821748d7a5b8d5ad208dbb7 | |
parent | 883b1db4d02344e4b845043ea4c991e76afdc361 (diff) | |
download | rpmdrake-ca3f12f9a6c52fc9fa9c18d802da9ad242a1a7f9.tar rpmdrake-ca3f12f9a6c52fc9fa9c18d802da9ad242a1a7f9.tar.gz rpmdrake-ca3f12f9a6c52fc9fa9c18d802da9ad242a1a7f9.tar.bz2 rpmdrake-ca3f12f9a6c52fc9fa9c18d802da9ad242a1a7f9.tar.xz rpmdrake-ca3f12f9a6c52fc9fa9c18d802da9ad242a1a7f9.zip |
don't exit at the end of the action, restart
-rwxr-xr-x | rpmdrake | 25 |
1 files changed, 15 insertions, 10 deletions
@@ -606,9 +606,11 @@ sub perform_installation { #- (partially) duplicated from /usr/sbin/urpmi :-( } sub rpmdrake_install { - my ($urpm, $installable) = get_installable_pkgs(); - - run_treeview_dialog($urpm, $installable) and perform_installation($urpm); + while (1) { + my ($urpm, $installable) = get_installable_pkgs(); + run_treeview_dialog($urpm, $installable) or return; + perform_installation($urpm); + } } @@ -639,19 +641,22 @@ sub perform_removal { } sub rpmdrake_remove { - my $installed = get_installed_pkgs(); - - run_treeview_dialog(new urpm, $installed) and perform_removal(new urpm, $installed); + while (1) { + my $installed = get_installed_pkgs(); + run_treeview_dialog(new urpm, $installed) or return; + perform_removal(new urpm, $installed); + } } # -=-=-=---=-=-=---=-=-=-- mandrakeupdate -=-=-=---=-=-=---=-=-=- sub rpmdrake_mandrakeupdate { - my ($urpm, $installable_updates, $descriptions) = get_installable_pkgs(1); - - run_treeview_dialog($urpm, $installable_updates, $descriptions) - and perform_installation($urpm); + while (1) { + my ($urpm, $installable_updates, $descriptions) = get_installable_pkgs(1); + run_treeview_dialog($urpm, $installable_updates, $descriptions) or return; + perform_installation($urpm); + } } |