aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGuillaume Cottenceau <gc@mandriva.com>2002-08-27 13:42:46 +0000
committerGuillaume Cottenceau <gc@mandriva.com>2002-08-27 13:42:46 +0000
commit327a9065cb807ee50abf9725313b629581c73e79 (patch)
tree8c1b881e35091293a9fdc10128a3094cf7f5602c
parent551f41e185accdd789c3778dd20e9594553f6cef (diff)
downloadrpmdrake-327a9065cb807ee50abf9725313b629581c73e79.tar
rpmdrake-327a9065cb807ee50abf9725313b629581c73e79.tar.gz
rpmdrake-327a9065cb807ee50abf9725313b629581c73e79.tar.bz2
rpmdrake-327a9065cb807ee50abf9725313b629581c73e79.tar.xz
rpmdrake-327a9065cb807ee50abf9725313b629581c73e79.zip
don't exit brutally when "some files are missing", will let
the user do it herself
-rwxr-xr-xrpmdrake6
1 files changed, 3 insertions, 3 deletions
diff --git a/rpmdrake b/rpmdrake
index 0c2cacf6..bb19331b 100755
--- a/rpmdrake
+++ b/rpmdrake
@@ -709,9 +709,9 @@ sub perform_installation { #- (partially) duplicated from /usr/sbin/urpmi :-(
if (@rpms_install || @rpms_upgrade) {
foreach (@rpms_install, @rpms_upgrade) {
m|^/| && ! -e $_ or next;
- fatal_msg(_("Installation failed"),
- _("Installation failed, some files are missing.\nYou may want to update your sources database."));
- myexit -1;
+ interactive_msg(_("Installation failed"),
+ _("Installation failed, some files are missing.\nYou may want to update your sources database."));
+ return;
}
%{$urpm->{state}{ask_remove}} and slow_func(_("Please wait, removing packages to allow others to be upgraded..."),
sub { system('rpm', '-e', '--nodeps', keys %{$urpm->{state}{ask_remove}}) });