summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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";