From 6a46ea7d5011fd91cc53ca447bb661f54d42308a Mon Sep 17 00:00:00 2001 From: Dannon Baker Date: Thu, 12 Feb 2015 07:57:51 -0500 Subject: [PATCH] Fix at least one error with zipfile downloads and file permissions not being set correctly. --- lib/galaxy/eggs/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/galaxy/eggs/__init__.py b/lib/galaxy/eggs/__init__.py index be4ee61dc39..bb86f0a0da8 100644 --- a/lib/galaxy/eggs/__init__.py +++ b/lib/galaxy/eggs/__init__.py @@ -463,7 +463,7 @@ def unpack_zipfile( filename, extract_dir, ignores=[] ): try: for info in z.infolist(): name = info.filename - perm = (info.external_attr >> 16L) & 0777 + mode = (info.external_attr >> 16L) & 0777 # don't extract absolute paths or ones with .. in them if name.startswith('/') or '..' in name: continue