File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -210,10 +210,15 @@ def stage_data(
210210 dst = staging_root / rel
211211
212212 if dst .exists ():
213- logger .info ("File is already published but NOT linked; linking now." )
214- replace_one_file_with_symlink (inputdata_root , staging_root , str (src ))
215- print_can_file_be_downloaded (can_file_be_downloaded (rel , staging_root ))
216- check_relink_worked (src , dst )
213+ msg = "File is already published but NOT linked"
214+ if check :
215+ logger .info ("%s; would link." , msg )
216+ print_can_file_be_downloaded (can_file_be_downloaded (rel , staging_root ))
217+ else :
218+ logger .info ("%s; linking now." , msg )
219+ replace_one_file_with_symlink (inputdata_root , staging_root , str (src ))
220+ check_relink_worked (src , dst )
221+ print_can_file_be_downloaded (can_file_be_downloaded (rel , staging_root ))
217222 return
218223
219224 if check :
You can’t perform that action at this time.
0 commit comments