From: Stefan Schantl Date: Fri, 14 Apr 2023 15:36:42 +0000 (+0200) Subject: ipblocklist-functions.pl: Adjust return codes of the download function X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=2ea58c7b6cd7a60eb24a291e7d2309a36e3d9b2e;p=people%2Fstevee%2Fipfire-2.x.git ipblocklist-functions.pl: Adjust return codes of the download function Signed-off-by: Stefan Schantl --- diff --git a/config/cfgroot/ipblocklist-functions.pl b/config/cfgroot/ipblocklist-functions.pl index 943d3fd34..1206a1b3d 100644 --- a/config/cfgroot/ipblocklist-functions.pl +++ b/config/cfgroot/ipblocklist-functions.pl @@ -152,10 +152,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.