# HG changeset patch # User Matti Hamalainen # Date 1513600935 -7200 # Node ID 9b4b1e4ce313781d21507514d445f2c1748226e4 # Parent 721a56cd62e31cc98ab3a2338952b6aeeb6930f3 fetch_weather: When force_update is set, do not load the old data cache. diff -r 721a56cd62e3 -r 9b4b1e4ce313 fetch_weather.pl --- a/fetch_weather.pl Mon Dec 18 14:41:51 2017 +0200 +++ b/fetch_weather.pl Mon Dec 18 14:42:15 2017 +0200 @@ -329,7 +329,7 @@ ### ### Load already cached data ### -if (opt_chk_valid("outfile", 1)) +if (opt_chk_valid("outfile", 1) && !opt_chk_bool("force_update")) { my $filename = opt_get("outfile"); if (-e "$filename")