Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Merge pull request #194 from zalun/download_all

use basename to hide directory structure
  • Loading branch information...
commit 61d66783252ac1318c990e342877a26c64f59062 2 parents 80812ff + 541be60
@zalun zalun authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  apps/jetpack/views.py
View
2  apps/jetpack/views.py
@@ -1333,7 +1333,7 @@ def all_zip(request, pk):
zip_targetpath = os.path.join(settings.XPI_TARGETDIR, zip_targetname)
with closing(ZipFile(zip_targetpath, 'w', ZIP_DEFLATED)) as z:
for fn in zips:
- z.write(fn)
+ z.write(fn, os.path.basename(fn))
log.info('[zipall:%s] Downloading All zipped' % pk)
response = serve(request, zip_targetpath, '/', show_indexes=False)
Please sign in to comment.
Something went wrong with that request. Please try again.