diff --git a/osm-loader.pl b/osm-loader.pl index 753574a..7128dd0 100755 --- a/osm-loader.pl +++ b/osm-loader.pl @@ -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