From f93e9cfebf87cb6c938046d9cdfb1825b6ede991 Mon Sep 17 00:00:00 2001 From: Jerry Date: Fri, 6 Sep 2019 15:24:48 +0800 Subject: [PATCH] buildbot: add force_upload --- buildbot.py | 5 ++--- client.py | 2 +- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/buildbot.py b/buildbot.py index 4dedc2a..fb94bf0 100755 --- a/buildbot.py +++ b/buildbot.py @@ -505,9 +505,8 @@ def clean(pkgdirname): def clean_all(): return jobsmgr.reset_dir(all=True) -def force_upload(pkgdirname): - #jobsmgr.force_upload_package(pkgdirname) - return "not implemented" +def force_upload(pkgdirname, overwrite=False): + return jobsmgr.force_upload_package(pkgdirname, overwrite=overwrite) def getup(): return jobsmgr.getup() diff --git a/client.py b/client.py index 59c852e..1fcd964 100755 --- a/client.py +++ b/client.py @@ -110,7 +110,7 @@ if __name__ == '__main__': parser.exit(status=1) server=(MASTER_BIND_ADDRESS, MASTER_BIND_PASSWD) for p in action[1:]: - logger.info(run('force_upload', args=(p,), server=server)) + logger.info(run('force_upload', args=(p,), kwargs={'overwrite': args.overwrite}, server=server)) elif action[0] == 'log': logger.info('printing logs') print_log()