details: http://www.bx.psu.edu/hg/galaxy/rev/8f6fa47b21c4 changeset: 3556:8f6fa47b21c4 user: Nate Coraor <nate@bx.psu.edu> date: Tue Mar 23 12:45:08 2010 -0400 description: Fix bug in upload where source import files could be removed if an error occurs during detection and galaxy owns the source files. diffstat: tools/data_source/upload.py | 3 +++ 1 files changed, 3 insertions(+), 0 deletions(-) diffs (13 lines): diff -r 4affff3421ed -r 8f6fa47b21c4 tools/data_source/upload.py --- a/tools/data_source/upload.py Tue Mar 23 10:44:13 2010 -0400 +++ b/tools/data_source/upload.py Tue Mar 23 12:45:08 2010 -0400 @@ -24,6 +24,9 @@ ext = 'data', dataset_id = dataset.dataset_id, stderr = msg ) ) + "\n" ) + # never remove a server-side upload + if dataset.type in ( 'server_dir', 'path_paste' ): + return try: os.remove( dataset.path ) except: