aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThierry Vignaud <tv@mandriva.org>2007-10-04 12:39:49 +0000
committerThierry Vignaud <tv@mandriva.org>2007-10-04 12:39:49 +0000
commit1927a218eb51f1c83f3398a956a8203774962ef8 (patch)
treea2d3d9e5bc552cce0330f8894ecce76ec28e70c3
parent14facf568379f39907bd19525bf9ef6cc042f19f (diff)
downloadrpmdrake-1927a218eb51f1c83f3398a956a8203774962ef8.tar
rpmdrake-1927a218eb51f1c83f3398a956a8203774962ef8.tar.gz
rpmdrake-1927a218eb51f1c83f3398a956a8203774962ef8.tar.bz2
rpmdrake-1927a218eb51f1c83f3398a956a8203774962ef8.tar.xz
rpmdrake-1927a218eb51f1c83f3398a956a8203774962ef8.zip
(warn_about_media, easy_add_callback) thread update media like regular media (aka look for media.cfg)
needs fixed/updated tree on mirrors
-rw-r--r--Rpmdrake/edit_urpm_sources.pm13
-rw-r--r--Rpmdrake/pkg.pm2
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
}