Buildbot: Make sure buildbot_upload.zip is created in the right place

This commit is contained in:
Sergey Sharybin 2015-12-03 16:30:21 +05:00
parent a7dbc0704f
commit 91d8a9d035
1 changed files with 2 additions and 2 deletions

View File

@ -221,7 +221,7 @@ else:
upload_filename = branch + "-" + upload_filename
print("Creating .tar.bz2 archive")
os.system('tar -C../install -cjf %s.tar.bz2 %s' % (builder, builder))
os.system('tar -C../install -cjf ../install/%s.tar.bz2 %s' % (builder, builder))
upload_filepath = install_dir + '.tar.bz2'
@ -265,7 +265,7 @@ if upload_filepath is None:
# create zip file
try:
upload_zip = "buildbot_upload.zip"
upload_zip = os.path.join(os.path.dirname(install_dir), "buildbot_upload.zip")
if os.path.exists(upload_zip):
os.remove(upload_zip)
z = zipfile.ZipFile(upload_zip, "w", compression=zipfile.ZIP_STORED)