diff options
author | Daouda Lo <daouda@mandriva.com> | 2004-03-24 15:28:06 +0000 |
---|---|---|
committer | Daouda Lo <daouda@mandriva.com> | 2004-03-24 15:28:06 +0000 |
commit | 8f2b58c0fdc7a6030e8eeb5d9f6747e4269ce106 (patch) | |
tree | d68834f701225f0999ab09acecf736568405b72e /mdkupdate | |
parent | 61a369245dc9f6813edd2064be5034ba67020759 (diff) | |
download | mgaonline-8f2b58c0fdc7a6030e8eeb5d9f6747e4269ce106.tar mgaonline-8f2b58c0fdc7a6030e8eeb5d9f6747e4269ce106.tar.gz mgaonline-8f2b58c0fdc7a6030e8eeb5d9f6747e4269ce106.tar.bz2 mgaonline-8f2b58c0fdc7a6030e8eeb5d9f6747e4269ce106.tar.xz mgaonline-8f2b58c0fdc7a6030e8eeb5d9f6747e4269ce106.zip |
- add trailing ftp://
Diffstat (limited to 'mdkupdate')
-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"; |