Mercurial > hg > egg-tcls
comparison fetch_weather.pl @ 462:9b4b1e4ce313
fetch_weather: When force_update is set, do not load the old data cache.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Mon, 18 Dec 2017 14:42:15 +0200 |
parents | 721a56cd62e3 |
children | fe478b7bd80e |
comparison
equal
deleted
inserted
replaced
461:721a56cd62e3 | 462:9b4b1e4ce313 |
---|---|
327 | 327 |
328 | 328 |
329 ### | 329 ### |
330 ### Load already cached data | 330 ### Load already cached data |
331 ### | 331 ### |
332 if (opt_chk_valid("outfile", 1)) | 332 if (opt_chk_valid("outfile", 1) && !opt_chk_bool("force_update")) |
333 { | 333 { |
334 my $filename = opt_get("outfile"); | 334 my $filename = opt_get("outfile"); |
335 if (-e "$filename") | 335 if (-e "$filename") |
336 { | 336 { |
337 my $str = read_text($filename); | 337 my $str = read_text($filename); |