Fix osm-loader script

master
Vitaliy Filippov 2018-07-29 15:00:53 +03:00
parent e1629d37e8
commit 7b939b3413
1 changed files with 1 additions and 1 deletions

View File

@ -85,9 +85,9 @@ while ($cur+86400 < $now)
my $fn = 'RU-'.POSIX::strftime("%y%m%d", localtime($cur)).'-'.POSIX::strftime("%y%m%d", localtime($next)).'.osc.gz';
my $url = 'http://be.gis-lab.info/data/osm_dump/diff/RU/'.$fn;
system("curl -C - -s -f '$url' -o $dir/$fn");
$cur = $next;
if (-e "$dir/$fn")
{
$cur = $next;
push @$apply, $fn;
}
else