diff options
-rwxr-xr-x | mdkupdate | 3 |
1 files changed, 1 insertions, 2 deletions
@@ -166,8 +166,7 @@ sub add_media { my ($r) = mdkonline::get_release(); my $dist_type = mdkonline::get_distro_type(); #sometimes server returns the full link http:// or ftp:// - my $no_full_path = $mirror !~ |^(http|ftp)://|; - my $fullpath2mir = $r <= 10.0 ? if_($no_full_path, "ftp://") . $mirror . if_($dist_type, "/$dist_type") ."/$r" . "/RPMS" . "/" : + my $fullpath2mir = $r <= 10.0 ? if_($mirror !~ /^(http|ftp):\/\// , "ftp://") . $mirror . if_($dist_type, "/$dist_type") ."/$r" . "/RPMS" . "/" : "ftp://" . $mirror . "/$r" . "/main_updates" . "/"; eval { system "/usr/sbin/urpmi.removemedia", "mdkupdate"; |