mirror of
https://github.com/r4sas/py-i2phosts
synced 2025-08-26 13:42:20 +00:00
py-i2phosts-checker: optionally run fetcher/maint/builder
This commit is contained in:
parent
be103aeb7a
commit
26a87c4bb1
@ -66,7 +66,13 @@ def run_prog(prog):
|
|||||||
|
|
||||||
def main():
|
def main():
|
||||||
while True:
|
while True:
|
||||||
|
if config.as_bool('run_fetcher'):
|
||||||
|
run_prog('py-i2phosts-fetcher')
|
||||||
check()
|
check()
|
||||||
|
if config.as_bool('run_maint'):
|
||||||
|
run_prog('py-i2phosts-maint')
|
||||||
|
if config.as_bool('run_builder'):
|
||||||
|
run_prog('py-i2phosts-builder')
|
||||||
if args.debug or args.verbose:
|
if args.debug or args.verbose:
|
||||||
sys.exit(0)
|
sys.exit(0)
|
||||||
else:
|
else:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user