zephyr_mirror: Fix running --sync-subscriptions repeatedly.
(imported from commit 15bead790590c91cd4a1d794799f94341d31c181)
This commit is contained in:
parent
34abe48f62
commit
27b02176bc
|
@ -10,11 +10,16 @@ from zephyr_mirror_backend import parse_args
|
||||||
|
|
||||||
(options, args) = parse_args()
|
(options, args) = parse_args()
|
||||||
|
|
||||||
|
args = [os.path.join(options.root_path, "user_root", "zephyr_mirror_backend.py")]
|
||||||
|
args.extend(sys.argv[1:])
|
||||||
|
|
||||||
|
if options.sync_subscriptions:
|
||||||
|
subprocess.call(args)
|
||||||
|
sys.exit(0)
|
||||||
|
|
||||||
while True:
|
while True:
|
||||||
print "Starting zephyr mirroring bot"
|
print "Starting zephyr mirroring bot"
|
||||||
try:
|
try:
|
||||||
args = [os.path.join(options.root_path, "user_root", "zephyr_mirror_backend.py")]
|
|
||||||
args.extend(sys.argv[1:])
|
|
||||||
subprocess.call(args)
|
subprocess.call(args)
|
||||||
except:
|
except:
|
||||||
traceback.print_exc()
|
traceback.print_exc()
|
||||||
|
|
Loading…
Reference in a new issue