From 5f5d7f608a01a682b3416dc576ac897b2714e55f Mon Sep 17 00:00:00 2001 From: Dominik Riebeling Date: Sat, 30 May 2015 18:21:32 +0200 Subject: Fix path creation for zip file names in current folder. When building in the current tree (i.e. buildfolder ending up as '.') creating the filename to use in the zip file stripped all '.' characters. Use a different way to create the filename to avoid this. Change-Id: I139c404d5e83a8bcb028a9a22b125f238911e405 --- utils/common/deploy.py | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'utils/common/deploy.py') diff --git a/utils/common/deploy.py b/utils/common/deploy.py index 24163d2c98..f57447a158 100755 --- a/utils/common/deploy.py +++ b/utils/common/deploy.py @@ -354,11 +354,7 @@ def zipball(programfiles, versionstring, buildfolder, platform=sys.platform): for root, dirs, files in os.walk(outfolder): for name in files: physname = os.path.normpath(os.path.join(root, name)) - filename = string.replace(physname, os.path.normpath(buildfolder), "") - zf.write(physname, filename) - for name in dirs: - physname = os.path.normpath(os.path.join(root, name)) - filename = string.replace(physname, os.path.normpath(buildfolder), "") + filename = os.path.relpath(physname, buildfolder) zf.write(physname, filename) zf.close() # remove output folder -- cgit v1.2.3