]> git.ipfire.org Git - thirdparty/suricata-update.git/commitdiff
misc: count number of rules that were actually modified
authorJason Ish <jason.ish@oisf.net>
Wed, 1 Oct 2025 18:28:18 +0000 (12:28 -0600)
committerJason Ish <jason.ish@oisf.net>
Wed, 1 Oct 2025 18:33:01 +0000 (12:33 -0600)
And not all that are just subject to modification.

Ticket: https://redmine.openinfosecfoundation.org/issues/7967

suricata/update/main.py

index f03611fcef1e80dad6a7ffbec1209aad4343cfd7..f036d1da6e8720480f23de7c2f16677f1c3fe836 100644 (file)
@@ -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