aboutsummaryrefslogtreecommitdiffstats
path: root/rpmdrake.pm
diff options
context:
space:
mode:
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;