Hi...

During the last days I had to manually modify tilesGen.pl to stop the upload-loop from looping like crazy :-\
* Last week a plain checkout ran fine....
* A new fresh checkout yesterday required the modification below.



I have a process (perl tilesGen.pl upload_loop) that loops without any wait-delay when there are no files to upload in the directory.

From what I find (last version of tilesGen.pl is version 11132) the sub upload is returning 1 when directory is empty. The surrounding code seems to expect a return-value of 0 to trigger the wait-delay.


To make the upload_loop work I had to change things a bit.

====================CUT tilesGen.pl
sub upload
{
   #upload all existing zip files
   keepLog($PID,"upload","start","$progressJobs");

   my $upload = new Upload;
   *my $saveReturnValue=*$upload->uploadAllZips();      # <<<modified line

   keepLog($PID,"upload","stop",0);

*return($saveReturnValue); * # <<<new line
}
====================CUT tilesGen.pl


Strange thing is that these code-lines hasn't changed in a long time.......
Could be there has been changes to the keepLog return-value that mask out the return-value from the $upload->uploadAllZips()


I run OpenSuse11-64bit.

--------
Ove

_______________________________________________
Tilesathome mailing list
[email protected]
http://lists.openstreetmap.org/listinfo/tilesathome

Reply via email to