summaryrefslogtreecommitdiff
path: root/utils/common/deploy.py
diff options
context:
space:
mode:
authorDominik Riebeling <Dominik.Riebeling@gmail.com>2015-05-30 18:21:32 +0200
committerDominik Riebeling <Dominik.Riebeling@gmail.com>2015-05-30 18:21:32 +0200
commit5f5d7f608a01a682b3416dc576ac897b2714e55f (patch)
tree322798f9ea43509c0765c178fae7c55f013a402a /utils/common/deploy.py
parent2af2a1253cc557eb7a845132e65e68e14cfd2a4a (diff)
downloadrockbox-5f5d7f608a01a682b3416dc576ac897b2714e55f.tar.gz
rockbox-5f5d7f608a01a682b3416dc576ac897b2714e55f.zip
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
Diffstat (limited to 'utils/common/deploy.py')
-rwxr-xr-xutils/common/deploy.py6
1 files changed, 1 insertions, 5 deletions
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):
354 for root, dirs, files in os.walk(outfolder): 354 for root, dirs, files in os.walk(outfolder):
355 for name in files: 355 for name in files:
356 physname = os.path.normpath(os.path.join(root, name)) 356 physname = os.path.normpath(os.path.join(root, name))
357 filename = string.replace(physname, os.path.normpath(buildfolder), "") 357 filename = os.path.relpath(physname, buildfolder)
358 zf.write(physname, filename)
359 for name in dirs:
360 physname = os.path.normpath(os.path.join(root, name))
361 filename = string.replace(physname, os.path.normpath(buildfolder), "")
362 zf.write(physname, filename) 358 zf.write(physname, filename)
363 zf.close() 359 zf.close()
364 # remove output folder 360 # remove output folder