aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2008-10-21 14:31:47 +0000
committerPascal Rigaux <pixel@mandriva.com>2008-10-21 14:31:47 +0000
commit8acf62d7f4a420d0aee1e44b227457511bab647f (patch)
tree21d395ec565fa3f048cab3ebaa023081ecbffea4
parent7b30f0e6b704b94b7e3b36783c5bbdeee822e423 (diff)
downloadrpmdrake-8acf62d7f4a420d0aee1e44b227457511bab647f.tar
rpmdrake-8acf62d7f4a420d0aee1e44b227457511bab647f.tar.gz
rpmdrake-8acf62d7f4a420d0aee1e44b227457511bab647f.tar.bz2
rpmdrake-8acf62d7f4a420d0aee1e44b227457511bab647f.tar.xz
rpmdrake-8acf62d7f4a420d0aee1e44b227457511bab647f.zip
- gurpmi.addmedia
o exit on failing media instead of ignoring them (esp. for --distrib) (need urpmi 6.14.9)
-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 {