Merge pull request #2034 from sarahmarshy/patch-1

[Exporters] Conflicting zip name
pull/2037/head
Martin Kojtal 2016-06-28 07:28:41 +02:00 committed by GitHub
commit 96e533c361
1 changed files with 2 additions and 2 deletions

View File

@ -58,7 +58,7 @@ def online_build_url_resolver(url):
def export(project_path, project_name, ide, target, destination='/tmp/',
tempdir=None, clean=True, extra_symbols=None, zip=True, sources_relative=False, build_url_resolver=online_build_url_resolver):
tempdir=None, clean=True, extra_symbols=None, make_zip=True, sources_relative=False, build_url_resolver=online_build_url_resolver):
# Convention: we are using capitals for toolchain and target names
if target is not None:
target = target.upper()
@ -136,7 +136,7 @@ def export(project_path, project_name, ide, target, destination='/tmp/',
# copy .hgignore file to exported direcotry as well.
if exists(os.path.join(exporter.TEMPLATE_DIR,'.hgignore')):
copy(os.path.join(exporter.TEMPLATE_DIR,'.hgignore'), tempdir)
if zip:
if make_zip:
zip_path = zip_working_directory_and_clean_up(tempdir, destination, project_name, clean)
else:
zip_path = destination