Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSergey Sharybin <sergey.vfx@gmail.com>2015-12-03 14:55:16 +0300
committerSergey Sharybin <sergey.vfx@gmail.com>2015-12-03 14:55:46 +0300
commitc825c81c38eb9c3cdb4d45669bf36173ef2e0664 (patch)
treefab59aa68be50a63c2c13073fba708addbe3046e /build_files/buildbot
parent8c453b599596fa8b1112b165e5c8dcb717264f30 (diff)
Buildbot: Another attmept to solve windows
Also de-duplicate bit of code.
Diffstat (limited to 'build_files/buildbot')
-rw-r--r--build_files/buildbot/slave_pack.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/build_files/buildbot/slave_pack.py b/build_files/buildbot/slave_pack.py
index 6005b42fd82..ffe038e988a 100644
--- a/build_files/buildbot/slave_pack.py
+++ b/build_files/buildbot/slave_pack.py
@@ -39,6 +39,7 @@ branch = sys.argv[2] if (len(sys.argv) >= 3 and sys.argv[2] != 'master') else ''
blender_dir = os.path.join('..', 'blender.git')
build_dir = os.path.join('..', 'build', builder)
install_dir = os.path.join('..', 'install', builder)
+buildbot_upload_zip = os.path.join(os.path.dirname(install_dir), "buildbot_upload.zip")
upload_filename = None # Name of the archive to be uploaded
# (this is the name of archive which will appear on the
@@ -165,10 +166,9 @@ else:
os.rename(result_file, "{}.zip".format(builderified_name))
# create zip file
try:
- upload_zip = os.path.join("..", "install", "buildbot_upload.zip")
- if os.path.exists(upload_zip):
- os.remove(upload_zip)
- z = zipfile.ZipFile(upload_zip, "w", compression=zipfile.ZIP_STORED)
+ if os.path.exists(buildbot_upload_zip):
+ os.remove(buildbot_upload_zip)
+ z = zipfile.ZipFile(buildbot_upload_zip, "w", compression=zipfile.ZIP_STORED)
z.write("{}.zip".format(builderified_name))
z.close()
sys.exit(retcode)
@@ -270,7 +270,7 @@ if upload_filepath is None:
# create zip file
try:
- upload_zip = os.path.join(os.path.dirname(install_dir), "buildbot_upload.zip")
+ upload_zip = os.path.join(buildbot_upload_zip)
if os.path.exists(upload_zip):
os.remove(upload_zip)
z = zipfile.ZipFile(upload_zip, "w", compression=zipfile.ZIP_STORED)