commit/galaxy-central: Dave Bouvier: Fix for a bug introduced with the rename_to option for the move_file action.
1 new commit in galaxy-central: https://bitbucket.org/galaxy/galaxy-central/commits/c0f049223e27/ Changeset: c0f049223e27 User: Dave Bouvier Date: 2013-10-08 17:12:10 Summary: Fix for a bug introduced with the rename_to option for the move_file action. Affected #: 1 file diff -r 82b1789621244bd81bf68c28fbe42a29931efee1 -r c0f049223e27a3984dab6b018afa1fce440e6288 lib/tool_shed/galaxy_install/tool_dependencies/td_common_util.py --- a/lib/tool_shed/galaxy_install/tool_dependencies/td_common_util.py +++ b/lib/tool_shed/galaxy_install/tool_dependencies/td_common_util.py @@ -316,7 +316,8 @@ shutil.move( source_file, destination_file ) def move_file( current_dir, source, destination, rename_to=None ): - source_file = os.path.abspath( os.path.join( current_dir, source ) ) + source_path = os.path.abspath( os.path.join( current_dir, source ) ) + source_file = os.path.basename( source_path ) if rename_to is not None: destination_file = rename_to destination_directory = os.path.join( destination ) @@ -326,7 +327,7 @@ destination_path = os.path.join( destination_directory, source_file ) if not os.path.exists( destination_directory ): os.makedirs( destination_directory ) - shutil.move( source_file, destination_path ) + shutil.move( source_path, destination_path ) def parse_package_elem( package_elem, platform_info_dict=None, include_after_install_actions=True ): """ Repository URL: https://bitbucket.org/galaxy/galaxy-central/ -- This is a commit notification from bitbucket.org. You are receiving this because you have the service enabled, addressing the recipient of this email.
participants (1)
-
commits-noreply@bitbucket.org