aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRafael Garcia-Suarez <rgarciasuarez@mandriva.org>2004-06-14 09:12:09 +0000
committerRafael Garcia-Suarez <rgarciasuarez@mandriva.org>2004-06-14 09:12:09 +0000
commitc484620285c85a1418f7c867d616bafbfb80eafd (patch)
tree33335a4d57e41c63251beb8aa688d0fb3ed80190
parent82bed2eecace12c5eebc249d7cf667f60493831a (diff)
downloadrpmdrake-c484620285c85a1418f7c867d616bafbfb80eafd.tar
rpmdrake-c484620285c85a1418f7c867d616bafbfb80eafd.tar.gz
rpmdrake-c484620285c85a1418f7c867d616bafbfb80eafd.tar.bz2
rpmdrake-c484620285c85a1418f7c867d616bafbfb80eafd.tar.xz
rpmdrake-c484620285c85a1418f7c867d616bafbfb80eafd.zip
Be more forgiving : don't issue a fatal error message if there is no error
message to display. (Anthill #918)
-rw-r--r--rpmdrake.pm2
1 files changed, 1 insertions, 1 deletions
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;
}