1
0
mirror of https://gitlab.com/fdroid/fdroidserver.git synced 2024-11-04 14:30:11 +01:00

fdroid build: add --refresh-scanner option

Apply 1 suggestion(s) to 1 file(s)
This commit is contained in:
linsui 2024-01-25 19:15:02 +08:00 committed by Hans-Christoph Steiner
parent fe7e4f8226
commit 6fb2e07dda
2 changed files with 3 additions and 1 deletions

View File

@ -868,6 +868,8 @@ def parse_commandline():
help=_("Don't create a source tarball, useful when testing a build")) help=_("Don't create a source tarball, useful when testing a build"))
parser.add_argument("--no-refresh", dest="refresh", action="store_false", default=True, 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")) 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, 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.")) 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, parser.add_argument("-a", "--all", action="store_true", default=False,

View File

@ -788,7 +788,7 @@ def main():
help=_("Force scan of disabled apps and builds.")) help=_("Force scan of disabled apps and builds."))
parser.add_argument("--json", action="store_true", default=False, parser.add_argument("--json", action="store_true", default=False,
help=_("Output JSON to stdout.")) 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")) help=_("fetch the latest version of signatures from the web"))
parser.add_argument("-e", "--exit-code", action="store_true", default=False, parser.add_argument("-e", "--exit-code", action="store_true", default=False,
help=_("Exit with a non-zero code if problems were found")) help=_("Exit with a non-zero code if problems were found"))