From patchwork Thu Mar 21 20:51:16 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stefan Schantl X-Patchwork-Id: 7655 Return-Path: Received: from mail01.ipfire.org (mail01.haj.ipfire.org [172.28.1.202]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (secp384r1) client-signature ECDSA (secp384r1)) (Client CN "mail01.haj.ipfire.org", Issuer "R3" (verified OK)) by web04.haj.ipfire.org (Postfix) with ESMTPS id 4V0yLZ0yh8z3wkd for ; Thu, 21 Mar 2024 20:51:50 +0000 (UTC) Received: from mail02.haj.ipfire.org (mail02.haj.ipfire.org [172.28.1.201]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (secp384r1) client-signature ECDSA (secp384r1)) (Client CN "mail02.haj.ipfire.org", Issuer "R3" (verified OK)) by mail01.ipfire.org (Postfix) with ESMTPS id 4V0yLF2rPszFL2; Thu, 21 Mar 2024 20:51:33 +0000 (UTC) Received: from mail02.haj.ipfire.org (localhost [127.0.0.1]) by mail02.haj.ipfire.org (Postfix) with ESMTP id 4V0yLF2DR1z32v2; Thu, 21 Mar 2024 20:51:33 +0000 (UTC) Received: from mail01.ipfire.org (mail01.haj.ipfire.org [172.28.1.202]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (secp384r1) client-signature ECDSA (secp384r1)) (Client CN "mail01.haj.ipfire.org", Issuer "R3" (verified OK)) by mail02.haj.ipfire.org (Postfix) with ESMTPS id 4V0yL84l5Tz32v4 for ; Thu, 21 Mar 2024 20:51:28 +0000 (UTC) Received: from [127.0.0.1] (localhost [127.0.0.1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (secp384r1) server-digest SHA384) (No client certificate requested) by mail01.ipfire.org (Postfix) with ESMTPSA id 4V0yL80HkVzph; Thu, 21 Mar 2024 20:51:27 +0000 (UTC) DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=ipfire.org; s=202003ed25519; t=1711054288; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=o7dVOF26MODH2Pn9eLhoHEfpaqTrYfhPc6Ddv9FzC88=; b=Dy0u6EQp6zNeE3tzERYEoKf5XkdazJn1WdpShemqqtlTcZ0HQBadzBbHoUhBsmdkIBCNV6 ouiahWnZ5/rbM/Ag== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ipfire.org; s=202003rsa; t=1711054288; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=o7dVOF26MODH2Pn9eLhoHEfpaqTrYfhPc6Ddv9FzC88=; b=eAlvjqVfTCicN8y/8MbMzuY8JxNXboqj74/2pcjYNpVZ1QGEyiC0GwiOHB25dm8MBDETIt uUw0Zio9dacL9l/ZJmo/BD1eSlQfixN1wLSUnb4xMdiPcuIkraAzCroZ5BGrZEIKHs2l3H 7QcogUBGTJolj2y+HDuILNixeQXU+gHxAsbEdDcg3SerzFkD7hnY0QS9J04Ss6kx58zp1K MXLac6Piacn+/3PBTXzSxfAibuNmB5clt+BZgKYanEIWRdOv372VDoB7wkl259YBsvbySP cht4NJCoE0n4KeIOLEGlreeUK3jnrJTuBcfTFR9wHOuneBwqBi05Ux2ZkmsOSQ== From: Stefan Schantl To: development@lists.ipfire.org Subject: [PATCH 3/5] update-ids-ruleset: Disable provider if not dl_url can be obtained Date: Thu, 21 Mar 2024 21:51:16 +0100 Message-Id: <20240321205118.382948-3-stefan.schantl@ipfire.org> In-Reply-To: <20240321205118.382948-1-stefan.schantl@ipfire.org> References: <20240321205118.382948-1-stefan.schantl@ipfire.org> MIME-Version: 1.0 Message-ID-Hash: 4ZQBMOBQQQA236XEU3FYBN63RTXLCYJL X-Message-ID-Hash: 4ZQBMOBQQQA236XEU3FYBN63RTXLCYJL X-MailFrom: stefan.schantl@ipfire.org X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header X-Mailman-Version: 3.3.8 Precedence: list List-Id: IPFire development talk Archived-At: List-Archive: List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: Unsupported/Removed provides does not longer have these information Signed-off-by: Stefan Schantl --- src/scripts/update-ids-ruleset | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/scripts/update-ids-ruleset b/src/scripts/update-ids-ruleset index 553c1a1e1..806107e1c 100644 --- a/src/scripts/update-ids-ruleset +++ b/src/scripts/update-ids-ruleset @@ -106,7 +106,7 @@ foreach my $id (keys %providers) { my $autoupdate_status = $providers{$id}[3]; # Skip unsupported providers. - next unless($IDS::Ruleset::Providers{$provider}); + next unless($IDS::Ruleset::Providers{$provider}{'dl_url'}); # Skip the provider if it is not enabled. next unless($enabled_status eq "enabled");