aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThierry Vignaud <tv@mandriva.org>2009-01-08 11:39:57 +0000
committerThierry Vignaud <tv@mandriva.org>2009-01-08 11:39:57 +0000
commit302df159c9d9a661a6e75719b7c799223168c351 (patch)
tree86cfe9a2b5841a56448f98652f6939fe08373ec1
parentaac96d9dc0eb33dece4faed87e94181460f0ca7d (diff)
downloadrpmdrake-302df159c9d9a661a6e75719b7c799223168c351.tar
rpmdrake-302df159c9d9a661a6e75719b7c799223168c351.tar.gz
rpmdrake-302df159c9d9a661a6e75719b7c799223168c351.tar.bz2
rpmdrake-302df159c9d9a661a6e75719b7c799223168c351.tar.xz
rpmdrake-302df159c9d9a661a6e75719b7c799223168c351.zip
(update_sources) add media even if one failed instead of rollbacking
all of them
-rw-r--r--NEWS1
-rw-r--r--rpmdrake.pm2
2 files changed, 2 insertions, 1 deletions
diff --git a/NEWS b/NEWS
index 872dc032..62bcf52e 100644
--- a/NEWS
+++ b/NEWS
@@ -1,4 +1,5 @@
- edit-urpm-sources:
+ o add media even if one failed instead of rollbacking all of them
o fix displayling big list of media to remove (#46773)
Version 5.5 - 9 December 2008, Thierry Vignaud
diff --git a/rpmdrake.pm b/rpmdrake.pm
index eeacb480..11944d8a 100644
--- a/rpmdrake.pm
+++ b/rpmdrake.pm
@@ -750,7 +750,7 @@ sub update_sources {
my $outerfatal = $urpm->{fatal};
local $urpm->{fatal} = sub { $w->destroy; $outerfatal->(@_) };
urpm::media::update_those_media($urpm, [ urpm::media::select_media_by_name($urpm, [ @media ]) ],
- %options,
+ %options, allow_failures => 1,
callback => sub {
$cancel and goto cancel_update;
my ($type, $media) = @_;