From 8f2b58c0fdc7a6030e8eeb5d9f6747e4269ce106 Mon Sep 17 00:00:00 2001 From: Daouda Lo Date: Wed, 24 Mar 2004 15:28:06 +0000 Subject: - add trailing ftp:// --- mdkupdate | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'mdkupdate') diff --git a/mdkupdate b/mdkupdate index 8da21b7a..5dcd68ff 100755 --- a/mdkupdate +++ b/mdkupdate @@ -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"; -- cgit v1.2.1