aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Rpmdrake/edit_urpm_sources.pm2
-rw-r--r--rpmdrake.pm2
2 files changed, 2 insertions, 2 deletions
diff --git a/Rpmdrake/edit_urpm_sources.pm b/Rpmdrake/edit_urpm_sources.pm
index 05b6e0b6..b19afacc 100644
--- a/Rpmdrake/edit_urpm_sources.pm
+++ b/Rpmdrake/edit_urpm_sources.pm
@@ -531,7 +531,7 @@ sub edit_callback() {
});
urpm::media::write_config($urpm);
local $::main_window = $old_main_window;
- update_sources_noninteractive($urpm, [ media => $name ], transient => $::main_window, nolock => 1);
+ update_sources_noninteractive($urpm, [ $name ], transient => $::main_window, nolock => 1);
} else {
urpm::media::remove_selected_media($urpm);
add_medium_and_check($urpm, { nolock => 1, proxy => $saved_proxy }, $name, $url, undef, update => $update, if_($downloader, downloader => $downloader));
diff --git a/rpmdrake.pm b/rpmdrake.pm
index cd6e085d..eeacb480 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_media($urpm,
+ urpm::media::update_those_media($urpm, [ urpm::media::select_media_by_name($urpm, [ @media ]) ],
%options,
callback => sub {
$cancel and goto cancel_update;