aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--NEWS3
-rw-r--r--rpmdrake.pm2
2 files changed, 4 insertions, 1 deletions
diff --git a/NEWS b/NEWS
index 2e66a4d0..b0fd2de8 100644
--- a/NEWS
+++ b/NEWS
@@ -1,4 +1,7 @@
- fix displaying big list of conflicting packages
+- gurpmi.addmedia
+ o exit on failing media instead of ignoring them (esp. for --distrib)
+ (need urpmi 6.14.9)
Version 5.0.2 - 16 October 2008, Thierry Vignaud
diff --git a/rpmdrake.pm b/rpmdrake.pm
index 1697ec32..8ba96f26 100644
--- a/rpmdrake.pm
+++ b/rpmdrake.pm
@@ -878,7 +878,7 @@ sub add_medium_and_check {
urpm::download::set_proxy_config($_, $options->{proxy}{$_}, $name) foreach keys %{$options->{proxy} || {}};
}
- if (update_sources_check($urpm, $options, N_("Unable to add medium, errors reported:\n\n%s"), @newnames)) {
+ if (update_sources_check($urpm, { %$options, failures_are_fatal => 1 }, N_("Unable to add medium, errors reported:\n\n%s"), @newnames)) {
urpm::media::write_config($urpm);
$options->{proxy} and urpm::download::dump_proxy_config();
} else {