From 8acf62d7f4a420d0aee1e44b227457511bab647f Mon Sep 17 00:00:00 2001 From: Pascal Rigaux Date: Tue, 21 Oct 2008 14:31:47 +0000 Subject: - gurpmi.addmedia o exit on failing media instead of ignoring them (esp. for --distrib) (need urpmi 6.14.9) --- NEWS | 3 +++ rpmdrake.pm | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) 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 { -- cgit v1.2.1