summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xmdkupdate3
1 files changed, 1 insertions, 2 deletions
diff --git a/mdkupdate b/mdkupdate
index 55d1521e..926a7039 100755
--- a/mdkupdate
+++ b/mdkupdate
@@ -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";