Conditional function use

This commit is contained in:
psakiev 2025-05-14 13:41:38 -06:00
parent 9e942bb3a3
commit 5986173e5b

View File

@ -491,7 +491,8 @@ def _configure_mirror(args):
changes["source"] = "source" in args.type
changed = entry.update(changes, direction)
changed = changed | _manage_filters(args, entry)
if hasattr(args, "include_file"):
changed = changed | _manage_filters(args, entry)
if changed:
mirrors[args.name] = entry.to_dict()