aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThierry Vignaud <tv@mandriva.org>2006-09-16 13:31:00 +0000
committerThierry Vignaud <tv@mandriva.org>2006-09-16 13:31:00 +0000
commitf8eacff40024223e1448c4c8387675090114f02a (patch)
treef3d85be3e135da83a6d604324cc470be38899204
parent8f03fcb3271218872c129493d6f09a412c2c3efa (diff)
downloadrpmdrake-f8eacff40024223e1448c4c8387675090114f02a.tar
rpmdrake-f8eacff40024223e1448c4c8387675090114f02a.tar.gz
rpmdrake-f8eacff40024223e1448c4c8387675090114f02a.tar.bz2
rpmdrake-f8eacff40024223e1448c4c8387675090114f02a.tar.xz
rpmdrake-f8eacff40024223e1448c4c8387675090114f02a.zip
(easy_add_callback) fix installing update media
-rwxr-xr-xedit-urpm-sources.pl4
1 files changed, 3 insertions, 1 deletions
diff --git a/edit-urpm-sources.pl b/edit-urpm-sources.pl
index 9ff48f1e..0127145d 100755
--- a/edit-urpm-sources.pl
+++ b/edit-urpm-sources.pl
@@ -100,10 +100,12 @@ Is it ok to continue?", $rpmdrake::mandrake_release),
transient => $mainw->{real_window},
) or return 0;
my $m = $mirror->{url};
+ my $is_update = $mirror->{type} eq 'updates';
+ $m .= '/media/main/updates' if $is_update;
my $wait = wait_msg_(N("Please wait, adding media..."));
my $url = $want_base_distro ? make_url_mirror_dist($m) : make_url_mirror($m);
my $medium_name;
- if ($want_base_distro) {
+ if ($want_base_distro && !$is_update) {
if ($rpmdrake::mandrake_release =~ /(\d+\.\d+) \((\w+)\)/) {
$medium_name = $2 . $1 . '-';
} else {