mirror of
https://github.com/galaxyproject/galaxy.git
synced 2026-09-24 16:30:27 +08:00
Merge pull request #3279 from blankenberg/16.10_ts_install_broken_symlink
[16.10] Fix for ToolShed install when copied sample data target exists, but is broken symlink.
This commit is contained in:
@@ -57,7 +57,7 @@ def copy_sample_file( app, filename, dest_path=None ):
|
||||
shutil.copy( full_source_path, full_destination_path )
|
||||
# Only create the .loc file if it does not yet exist. We don't overwrite it in case it
|
||||
# contains stuff proprietary to the local instance.
|
||||
if not os.path.exists( os.path.join( dest_path, copied_file ) ):
|
||||
if not os.path.lexists( os.path.join( dest_path, copied_file ) ):
|
||||
shutil.copy( full_source_path, os.path.join( dest_path, copied_file ) )
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user