Permalink
Browse files

Merge pull request #194 from zalun/download_all

use basename to hide directory structure
  • Loading branch information...
2 parents 80812ff + 541be60 commit 61d66783252ac1318c990e342877a26c64f59062 @zalun zalun committed Feb 25, 2014
Showing with 1 addition and 1 deletion.
  1. +1 −1 apps/jetpack/views.py
View
@@ -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)

0 comments on commit 61d6678

Please sign in to comment.