summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDaouda Lo <daouda@mandriva.com>2004-03-24 15:28:06 +0000
committerDaouda Lo <daouda@mandriva.com>2004-03-24 15:28:06 +0000
commit8f2b58c0fdc7a6030e8eeb5d9f6747e4269ce106 (patch)
treed68834f701225f0999ab09acecf736568405b72e
parent61a369245dc9f6813edd2064be5034ba67020759 (diff)
downloadmgaonline-8f2b58c0fdc7a6030e8eeb5d9f6747e4269ce106.tar
mgaonline-8f2b58c0fdc7a6030e8eeb5d9f6747e4269ce106.tar.gz
mgaonline-8f2b58c0fdc7a6030e8eeb5d9f6747e4269ce106.tar.bz2
mgaonline-8f2b58c0fdc7a6030e8eeb5d9f6747e4269ce106.tar.xz
mgaonline-8f2b58c0fdc7a6030e8eeb5d9f6747e4269ce106.zip
- add trailing ftp://
-rwxr-xr-xmdkupdate3
1 files changed, 2 insertions, 1 deletions
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";