aboutsummaryrefslogtreecommitdiffstats
path: root/edit-urpm-sources.pl
diff options
context:
space:
mode:
Diffstat (limited to 'edit-urpm-sources.pl')
-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 {