diff --git a/fdroidserver/build.py b/fdroidserver/build.py index fb68f6c6..5f94312b 100644 --- a/fdroidserver/build.py +++ b/fdroidserver/build.py @@ -868,6 +868,8 @@ def parse_commandline(): help=_("Don't create a source tarball, useful when testing a build")) parser.add_argument("--no-refresh", dest="refresh", action="store_false", default=True, help=_("Don't refresh the repository, useful when testing a build with no internet connection")) + parser.add_argument("-r", "--refresh-scanner", dest="refresh_scanner", action="store_true", default=False, + help=_("Refresh and cache scanner rules and signatures from the network")) parser.add_argument("-f", "--force", action="store_true", default=False, help=_("Force build of disabled apps, and carries on regardless of scan problems. Only allowed in test mode.")) parser.add_argument("-a", "--all", action="store_true", default=False, diff --git a/fdroidserver/scanner.py b/fdroidserver/scanner.py index 51497bcd..d96f2f6c 100644 --- a/fdroidserver/scanner.py +++ b/fdroidserver/scanner.py @@ -788,7 +788,7 @@ def main(): help=_("Force scan of disabled apps and builds.")) parser.add_argument("--json", action="store_true", default=False, help=_("Output JSON to stdout.")) - parser.add_argument("-r", "--refresh", action="store_true", default=False, + parser.add_argument("-r", "--refresh", dest="refresh_scanner", action="store_true", default=False, help=_("fetch the latest version of signatures from the web")) parser.add_argument("-e", "--exit-code", action="store_true", default=False, help=_("Exit with a non-zero code if problems were found"))