aboutsummaryrefslogtreecommitdiffstats
path: root/rpmdrake.pm
diff options
context:
space:
mode:
authorThierry Vignaud <tv@mandriva.org>2009-02-10 14:36:17 +0000
committerThierry Vignaud <tv@mandriva.org>2009-02-10 14:36:17 +0000
commit6627ad493200cfa085013cb3807e131fcceca409 (patch)
tree8570f79be019fdcf7aaed9c0326bc04802dd1f78 /rpmdrake.pm
parentd7befa43ac3485aba12f4cfec3100304d38584d4 (diff)
downloadrpmdrake-6627ad493200cfa085013cb3807e131fcceca409.tar
rpmdrake-6627ad493200cfa085013cb3807e131fcceca409.tar.gz
rpmdrake-6627ad493200cfa085013cb3807e131fcceca409.tar.bz2
rpmdrake-6627ad493200cfa085013cb3807e131fcceca409.tar.xz
rpmdrake-6627ad493200cfa085013cb3807e131fcceca409.zip
(update_sources) simplify
Diffstat (limited to 'rpmdrake.pm')
-rw-r--r--rpmdrake.pm2
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;