mirror of
https://github.com/archlinux-jerry/buildbot
synced 2024-11-22 13:00:40 +08:00
client: add info
This commit is contained in:
parent
7203913efc
commit
440c8568d7
1 changed files with 5 additions and 1 deletions
|
@ -41,12 +41,16 @@ if __name__ == '__main__':
|
|||
configure_logger(logger)
|
||||
try:
|
||||
parser = argparse.ArgumentParser(description='Client for buildbot')
|
||||
parser.add_argument('--info', action='store_true', help='show buildbot info')
|
||||
parser.add_argument('--update', action='store_true', help='update pushed files to the repo')
|
||||
parser.add_argument('--cleanall', action='store_true', help='checkout pkgbuilds')
|
||||
parser.add_argument('--clean', nargs='?', default=None, help='checkout pkgbuilds in one package')
|
||||
parser.add_argument('--rebuild', nargs='?', default=None, help='rebuild a package with its dirname')
|
||||
args = parser.parse_args()
|
||||
if args.update:
|
||||
if args.info:
|
||||
server=(MASTER_BIND_ADDRESS, MASTER_BIND_PASSWD)
|
||||
logger.info(run('info', server=server))
|
||||
elif args.update:
|
||||
server=(REPOD_BIND_ADDRESS, REPOD_BIND_PASSWD)
|
||||
logger.info(run('update', kwargs={'overwrite': False}, server=server))
|
||||
elif args.cleanall:
|
||||
|
|
Loading…
Reference in a new issue