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()