Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

use basename to hide directory structure

  • Loading branch information...
commit 541be60ae2171d8ebf75cf4830e2c24c7ce7267a 1 parent ac95800
@zalun zalun authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  apps/jetpack/
2  apps/jetpack/
@@ -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))'[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.