[PATCH 4/5] fix mandatory arguments check for post-bodhi-update

Kamil Páral kparal at redhat.com
Fri Sep 10 13:52:30 UTC 2010


There was a mistake in mandatory arguments checking for
post-bodhi-update. It required different arguments than was documented
in its README. This patch fixes it.
---
 hooks/post-bodhi-update/hook.py |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/hooks/post-bodhi-update/hook.py b/hooks/post-bodhi-update/hook.py
index f4dd355..bb9d14c 100644
--- a/hooks/post-bodhi-update/hook.py
+++ b/hooks/post-bodhi-update/hook.py
@@ -45,10 +45,10 @@ def process_testdata(parser, opts, args, **extra):
 
     if not args:
         parser.error('No ENVR was specified as a test argument!')
-    if not opts.title:
-        parser.error('--title is a mandatory option!')
-    if not opts.updateid and not opts.targettag:
-        parser.error('At least one of --updateid or --targettag must be supplied!')
+    if not opts.targettag:
+        parser.error('--target-tag is a mandatory option!')
+    if not opts.title and not opts.updateid:
+        parser.error('At least one of --title or --updateid must be supplied!')
 
     testdata = {'envrs': args,
                 'kojitag': opts.targettag,
-- 
1.7.2.2



More information about the autoqa-devel mailing list