From: Jason Ish Date: Wed, 1 Oct 2025 18:28:18 +0000 (-0600) Subject: misc: count number of rules that were actually modified X-Git-Tag: 1.3.7~3 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=45db4f84d23aded9eaa9489af1c0ef544f70703f;p=thirdparty%2Fsuricata-update.git misc: count number of rules that were actually modified And not all that are just subject to modification. Ticket: https://redmine.openinfosecfoundation.org/issues/7967 --- diff --git a/suricata/update/main.py b/suricata/update/main.py index f03611f..f036d1d 100644 --- a/suricata/update/main.py +++ b/suricata/update/main.py @@ -1304,8 +1304,10 @@ def _main(): for fltr in modify_filters: if fltr.match(rule): - rule = fltr.run(rule) - modified = True + new_rule = fltr.run(rule) + if new_rule != rule: + rule = new_rule + modified = True if enabled: enable_count += 1