From: Michael Tremer Date: Mon, 29 Dec 2025 11:09:19 +0000 (+0000) Subject: dnsbl: Add flag to force updating all sources of all lists X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=621f6ca087b15bc61d9831c00276bd50b6e0a6de;p=dbl.git dnsbl: Add flag to force updating all sources of all lists Signed-off-by: Michael Tremer --- diff --git a/src/scripts/dnsbl.in b/src/scripts/dnsbl.in index 424eeee..d0bef6c 100644 --- a/src/scripts/dnsbl.in +++ b/src/scripts/dnsbl.in @@ -100,6 +100,7 @@ class CLI(object): # update-all update_all = subparsers.add_parser("update-all", help=_("Updates all lists")) + update_all.add_argument("--force", action="store_true", help=_("Force an update")) update_all.set_defaults(func=self.__update_all) # export @@ -299,7 +300,7 @@ class CLI(object): Updates all lists """ for list in backend.lists: - list.update() + list.update(force=args.force) def __export(self, backend, args): """