mirror of
https://github.com/f-droid/fdroidserver.git
synced 2025-09-13 14:32:28 +03:00
Apply 3 suggestion(s) to 2 file(s)
This commit is contained in:
parent
e967fc61cf
commit
9ccf583061
2 changed files with 3 additions and 3 deletions
|
@ -325,7 +325,7 @@ def fill_config_defaults(thisconfig):
|
||||||
|
|
||||||
|
|
||||||
def get_config(opts=None):
|
def get_config(opts=None):
|
||||||
"""Get config instace. This function takes care of initaling config data before returning it."""
|
"""Get config instace. This function takes care of initializing config data before returning it."""
|
||||||
global config, options
|
global config, options
|
||||||
|
|
||||||
if config is not None:
|
if config is not None:
|
||||||
|
|
|
@ -353,7 +353,7 @@ def _get_tool():
|
||||||
"""
|
"""
|
||||||
Lazy loading function for getting a ScannerTool instance.
|
Lazy loading function for getting a ScannerTool instance.
|
||||||
|
|
||||||
ScannerTool initialization need to access `common.config` values. Those are only available after initialization through `common.read_config()` So this factory assumes config was called at an erlier point in time
|
ScannerTool initialization need to access `common.config` values. Those are only available after initialization through `common.read_config()`. So this factory assumes config was called at an erlier point in time.
|
||||||
"""
|
"""
|
||||||
if not scanner._SCANNER_TOOL:
|
if not scanner._SCANNER_TOOL:
|
||||||
scanner._SCANNER_TOOL = ScannerTool()
|
scanner._SCANNER_TOOL = ScannerTool()
|
||||||
|
@ -682,7 +682,7 @@ def main():
|
||||||
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("--refresh", "-r", action="store_true", default=False,
|
parser.add_argument("--refresh", "-r", action="store_true", default=False,
|
||||||
help=_("fetach the latest version of signatures from the web"))
|
help=_("fetch the latest version of signatures from the web"))
|
||||||
metadata.add_metadata_arguments(parser)
|
metadata.add_metadata_arguments(parser)
|
||||||
options = parser.parse_args()
|
options = parser.parse_args()
|
||||||
metadata.warnings_action = options.W
|
metadata.warnings_action = options.W
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue