diff options
-rwxr-xr-x | mdkupdate | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -83,6 +83,7 @@ if ($o{LOGIN} && $o{PASS} && $o{LOGIN} !~ /\s+/ && $o{PASS} !~ /\s+/) { if ($c2h->{torf} eq "TRUE" && $c2h->{OLDKEY} && $c2h->{NEWKEY}) { updateConf($c2h->{OLDKEY}, $c2h->{NEWKEY}) } if ($c2h->{FTP}) { # for debugging purpose + printf("FTP = %s\n", $c2h->{FTP}); #$c2h->{FTP} = 'ftp://ftp.lip6.fr/pub/linux/distributions/mandrake/updates'; addMedia($c2h->{FTP}) } @@ -250,7 +251,7 @@ sub updateConf { sub addMedia { my $mirror = shift; my ($r) = getRelease(); - my $fullpath2mir = "$mirror". "/$r" . "/RPMS" . "/" ; + my $fullpath2mir = "ftp://" . "$mirror". "/$r" . "/RPMS" . "/" ; eval { system "/usr/sbin/urpmi.removemedia", "mdkupdate"; system "/usr/sbin/urpmi.addmedia", "--update", "mdkupdate", $fullpath2mir, "with ../base/hdlist.cz"; |