From c484620285c85a1418f7c867d616bafbfb80eafd Mon Sep 17 00:00:00 2001 From: Rafael Garcia-Suarez Date: Mon, 14 Jun 2004 09:12:09 +0000 Subject: Be more forgiving : don't issue a fatal error message if there is no error message to display. (Anthill #918) --- rpmdrake.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rpmdrake.pm b/rpmdrake.pm index c218988f..8a182f30 100644 --- a/rpmdrake.pm +++ b/rpmdrake.pm @@ -464,7 +464,7 @@ sub update_sources_check { local $urpm->{error} = sub { push @error_msgs, to_utf8($_[0]) }; update_sources($urpm, %$options, noclean => 1); fatal_error: - if (@error_msgs || any { member($_->{name}, @media) && $_->{modified} } @{$urpm->{media}}) { + if (@error_msgs) { interactive_msg('rpmdrake', sprintf_fixutf8(translate($error_msg), join("\n", @error_msgs))); return 0; } -- cgit v1.2.1