diff --git a/client/equo.py b/client/equo.py index 14c2f50e6..b0476d6ee 100644 --- a/client/equo.py +++ b/client/equo.py @@ -104,6 +104,7 @@ help_opts = [ None, (1, 'security', 1, _('security infrastructure functions')), (2, 'update', 2, _('download the latest Security Advisories')), + (3, '--force', 1, _('force download even if already up-to-date')), (2, 'list', 2, _('list all the available Security Advisories')), (3, '--affected', 1, _('list only affected')), (3, '--unaffected', 1, _('list only unaffected')), diff --git a/client/text_security.py b/client/text_security.py index f3f542cc6..76b5a054d 100644 --- a/client/text_security.py +++ b/client/text_security.py @@ -24,6 +24,7 @@ def security(options): only_affected = False only_unaffected = False fetch = False + force = False for opt in options: if opt == "--affected": only_affected = True @@ -31,6 +32,8 @@ def security(options): only_unaffected = True elif opt == "--fetch": fetch = True + elif opt == "--force": + force = True from entropy.client.interfaces import Client entropy_client = Client() @@ -43,7 +46,7 @@ def security(options): if not entropy.tools.is_user_in_entropy_group(): print_error(er_txt) return 1 - rc = security_intf.fetch_advisories() + rc = security_intf.fetch_advisories(force = force) elif options[0] == "list": security_intf = entropy_client.Security()