From 27b02176bcfc188c8f09997acab80324ea01872d Mon Sep 17 00:00:00 2001 From: Tim Abbott Date: Tue, 20 Nov 2012 15:23:30 -0500 Subject: [PATCH] zephyr_mirror: Fix running --sync-subscriptions repeatedly. (imported from commit 15bead790590c91cd4a1d794799f94341d31c181) --- bots/zephyr_mirror.py | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/bots/zephyr_mirror.py b/bots/zephyr_mirror.py index 7f48536..81ab7a2 100755 --- a/bots/zephyr_mirror.py +++ b/bots/zephyr_mirror.py @@ -10,11 +10,16 @@ from zephyr_mirror_backend import 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: print "Starting zephyr mirroring bot" try: - args = [os.path.join(options.root_path, "user_root", "zephyr_mirror_backend.py")] - args.extend(sys.argv[1:]) subprocess.call(args) except: traceback.print_exc()