aboutsummaryrefslogtreecommitdiffstats
path: root/rpmdrake.pm
diff options
context:
space:
mode:
Diffstat (limited to 'rpmdrake.pm')
-rw-r--r--rpmdrake.pm9
1 files changed, 2 insertions, 7 deletions
diff --git a/rpmdrake.pm b/rpmdrake.pm
index 833221b6..0a96b685 100644
--- a/rpmdrake.pm
+++ b/rpmdrake.pm
@@ -612,13 +612,8 @@ by Mandriva Linux Official Updates.")), %options
sub make_url_mirror {
my ($mirror) = @_;
- if ($mirror =~ m!/(?:RPMS|media/main)/?\Z!) {
- "$mirror/";
- } else {
- my ($class, $release) = $mandrake_release =~ /(\S+)\s+release\s+(\S+)/;
- $class !~ /linux/i and $release = lc($class) . "/$release"; #- handle subdirectory for corporate/clustering/etc
- "$mirror/$release/main_updates/";
- }
+ # because updates media do not provide media.cfg yet
+ $mirror . '/media/main/updates'
}
sub make_url_mirror_dist {