Skip to content

Instantly share code, notes, and snippets.

@pjbriggs
Created September 15, 2015 13:34
Show Gist options
  • Save pjbriggs/84fab89656d9b1a5428f to your computer and use it in GitHub Desktop.
Save pjbriggs/84fab89656d9b1a5428f to your computer and use it in GitHub Desktop.
Patch to fix tool dependency installation from .zip files in galaxy v15.07
diff --git a/lib/tool_shed/galaxy_install/tool_dependencies/recipe/step_handler.py b/lib/tool_shed/galaxy_install/tool_dependencies/recipe/step_handler.py
index 3d28462..5c98da6 100755
--- a/lib/tool_shed/galaxy_install/tool_dependencies/recipe/step_handler.py
+++ b/lib/tool_shed/galaxy_install/tool_dependencies/recipe/step_handler.py
@@ -81,7 +81,7 @@ class CompressedFile( object ):
if self.file_type == 'zip':
for zipped_file in self.getmembers():
filename = self.getname( zipped_file )
- absolute_filepath = os.path.join( extraction_path, filename )
+ absolute_filepath = os.path.join( path, filename )
external_attributes = self.archive.getinfo( filename ).external_attr
# The 2 least significant bytes are irrelevant, the next two contain unix permissions.
unix_permissions = external_attributes >> 16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment