From f46e77fd561992b253c904a7c89a95d465d7feb0 Mon Sep 17 00:00:00 2001 From: Martijn Berger Date: Wed, 12 Nov 2014 15:23:24 +0100 Subject: cmake buildbot. Create the zip archive with the name as expected --- build_files/buildbot/slave_pack.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/build_files/buildbot/slave_pack.py b/build_files/buildbot/slave_pack.py index ec8fd61c787..faceb8d3a65 100644 --- a/build_files/buildbot/slave_pack.py +++ b/build_files/buildbot/slave_pack.py @@ -118,7 +118,12 @@ if builder.find('scons') != -1: else: #cmake if 'win' in builder: + files = [f for f in os.listdir('.') if os.path.isfile(f) and f.endswith('.zip')] + for f in files: + os.remove(f) retcode = subprocess.call(['cpack', '-G','ZIP']) + result_file = [f for f in os.listdir('.') if os.path.isfile(f) and f.endswith('.zip')][0] + os.rename(result_file, "buildbot_upload.zip") sys.exit(retcode) # clean release directory if it already exists -- cgit v1.2.3