diff options
-rw-r--r-- | Rpmdrake/edit_urpm_sources.pm | 13 | ||||
-rw-r--r-- | Rpmdrake/pkg.pm | 2 |
2 files changed, 1 insertions, 14 deletions
diff --git a/Rpmdrake/edit_urpm_sources.pm b/Rpmdrake/edit_urpm_sources.pm index 8bd83815..4c01b194 100644 --- a/Rpmdrake/edit_urpm_sources.pm +++ b/Rpmdrake/edit_urpm_sources.pm @@ -138,11 +138,9 @@ Is it ok to continue?", $distro), ref $mirror or return; my $m = $mirror->{url}; my $is_update = $mirror->{type} eq 'updates'; - $m = make_url_mirror($m) if $is_update; # because updates media do not provide media.cfg yet my $wait = wait_msg(N("Please wait, adding media...")); my $url = $m; my $medium_name; - if ($want_base_distro && !$is_update) { if ($rpmdrake::mandrake_release =~ /(\d+\.\d+) \((\w+)\)/) { $medium_name = $2 . $1 . '-'; } else { @@ -156,17 +154,6 @@ Is it ok to continue?", $distro), $medium_name, $url, probe_with => 'synthesis', initial_number => $initial_number, usedistrib => 1, ); - } else { - $medium_name = 'update_source'; - #- ensure a unique medium name - my $nb_sources = max map { $_->{name} =~ /^\Q$medium_name\E(\d*)$/ ? $1 || 1 : 0 } @{$urpm->{media}}; - if ($nb_sources) { $medium_name .= $nb_sources + 1 } - add_medium_and_check( - $urpm, - { nolock => 1, probe_with => 1 }, - $medium_name, $url, '', update => 1, - ); - } remove_wait_msg($wait); return 1; } diff --git a/Rpmdrake/pkg.pm b/Rpmdrake/pkg.pm index a8aa259a..aa1aef4c 100644 --- a/Rpmdrake/pkg.pm +++ b/Rpmdrake/pkg.pm @@ -214,7 +214,7 @@ updates' medium. Then, restart %s.", $rpmdrake::myname_update)), myexit(-1); add_medium_and_check( $urpm, {}, - $update_name, make_url_mirror($m), 'media_info/synthesis.hdlist.cz', update => 1, + $update_name, $m, 'media_info/synthesis.hdlist.cz', update => 1, ); @update_medias = { name => $update_name }; #- hack to simulate a medium for parsing of descriptions } |