From: Stefan Schantl Date: Fri, 14 Apr 2023 16:14:43 +0000 (+0200) Subject: ipblocklist-functions.pl: Fix return codes of the downloader X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=ed89d45d8af3f94a7c8c5e9bd2d11488ee5994ee;p=people%2Fstevee%2Fipfire-2.x.git ipblocklist-functions.pl: Fix return codes of the downloader Signed-off-by: Stefan Schantl --- diff --git a/config/cfgroot/ipblocklist-functions.pl b/config/cfgroot/ipblocklist-functions.pl index 31810b64ee..28843c8008 100644 --- a/config/cfgroot/ipblocklist-functions.pl +++ b/config/cfgroot/ipblocklist-functions.pl @@ -153,10 +153,10 @@ sub download_blocklist ($) { my $response = &General::downloader(%settings); # Abort if the response is empty - return "empty list" unless ($response); + return "empty_list" unless ($response); # Return return codes from downloader. - return "not modified" if ($response eq "not modified"); + return "not_modified" if ($response eq "not_modified"); # Convert the response into an array to allow # processing the items. @@ -166,7 +166,7 @@ sub download_blocklist ($) { my $parser = $parsers{$IPblocklist::List::sources{$list}{'parser'}}; # Return if no parser could be omited. - return "no parser" unless ($parser); + return "no_parser" unless ($parser); # Get the name of the cached blocklist. my $file = &get_cached_blocklist_file($list);