refine --buildlog error info and usage help info
authorZhang Qiang <qiang.z.zhang@intel.com>
Fri, 13 Jul 2012 05:35:49 +0000 (13:35 +0800)
committerZhang Qiang <qiang.z.zhang@intel.com>
Fri, 13 Jul 2012 05:35:49 +0000 (13:35 +0800)
gitbuildsys/cmd_remotebuild.py
tools/gbs

index 862334b7ba8b079c9570f68b30c74f0ac4d6f6aa..7a06b0444c37877c995cc3c9cc8dc4ccf77cbc11 100644 (file)
@@ -167,10 +167,9 @@ def do(opts, args):
                 archlist.append('%-15s%-15s' % (build_repo, arch))
         if not obs_repo or not obs_arch or obs_repo not in status.keys() or \
            obs_arch not in status[obs_repo].keys():
-            msger.info('please specify correct repo / arch for buildlog')
-            msger.info('valid arguments of repo and arch are:\n%s' % \
-                       '\n'.join(archlist))
-            return 1
+            msger.error('no valid repo / arch specified for buildlog, '\
+                        'valid arguments of repo and arch are:\n%s' % \
+                        '\n'.join(archlist))
         if status[obs_repo][obs_arch] not in ['failed', 'succeeded', \
                                                                    'building']:
             msger.error('build status of %s for %s/%s is %s, no build log.' % \
index 72be3b55b384dccceab19c641d80b1da830eeac4..7e5cdfd9a206fc6200a38428c622ac1b331bc5fd 100755 (executable)
--- a/tools/gbs
+++ b/tools/gbs
@@ -310,7 +310,8 @@ class Gbs(cmdln.Cmdln):
         """${cmd_name}: remote build package
 
         Usage:
-            gbs remotebuild [options] [package git dir]
+            gbs remotebuild [options] [package git dir] \
+    [--buildlog repo arch] [--status]
 
             [package git dir] is optional, if not specified, current dir would
             be used.