diff options
author | Thierry Vignaud <tv@mandriva.org> | 2009-02-10 14:36:17 +0000 |
---|---|---|
committer | Thierry Vignaud <tv@mandriva.org> | 2009-02-10 14:36:17 +0000 |
commit | 6627ad493200cfa085013cb3807e131fcceca409 (patch) | |
tree | 8570f79be019fdcf7aaed9c0326bc04802dd1f78 | |
parent | d7befa43ac3485aba12f4cfec3100304d38584d4 (diff) | |
download | rpmdrake-6627ad493200cfa085013cb3807e131fcceca409.tar rpmdrake-6627ad493200cfa085013cb3807e131fcceca409.tar.gz rpmdrake-6627ad493200cfa085013cb3807e131fcceca409.tar.bz2 rpmdrake-6627ad493200cfa085013cb3807e131fcceca409.tar.xz rpmdrake-6627ad493200cfa085013cb3807e131fcceca409.zip |
(update_sources) simplify
-rw-r--r-- | rpmdrake.pm | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/rpmdrake.pm b/rpmdrake.pm index f1fd54fb..14e07fac 100644 --- a/rpmdrake.pm +++ b/rpmdrake.pm @@ -749,7 +749,7 @@ sub update_sources { my @media; @media = @{$options{medialist}} if ref $options{medialist}; 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 ]) ], + urpm::media::update_those_media($urpm, [ urpm::media::select_media_by_name($urpm, \@media) ], %options, allow_failures => 1, callback => sub { $cancel and goto cancel_update; |