summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xutils/create-jobs.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/utils/create-jobs.py b/utils/create-jobs.py
index ad0c428..384d935 100755
--- a/utils/create-jobs.py
+++ b/utils/create-jobs.py
@@ -52,8 +52,8 @@ def parse_cmdline(machines, tests, rfs_types):
args = parser.parse_args()
- if (bool(args.callback_from) ^ bool(args.callback_to)):
- parser.error("To specify callbacks both '--callback-to' and '--callback-from' are mandatory.")
+ if args.callback_to and not args.callback_from:
+ parser.error("When using '--callback-to', '--callback-from' is mandatory.")
if (args.build_type is not "default") and (args.url is None):
if (not args.url_branch) or (not args.url_version):