Skip to content
This repository has been archived by the owner on Sep 11, 2019. It is now read-only.

Commit

Permalink
preserve symlinks
Browse files Browse the repository at this point in the history
  • Loading branch information
bcoca committed Aug 21, 2019
1 parent 9c8360a commit 080bbf3
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion migrate.py
Original file line number Diff line number Diff line change
Expand Up @@ -404,7 +404,10 @@ def assemble_collections(spec, args):
if not os.path.exists(src):
raise Exception('Spec specifies "%s" but file "%s" is not found in checkout' % (plugin, src))

if not src.endswith('.py'):
if os.path.islink(src):
shutil.copyfile(src, dest, follow_symlinks=False)
continue
elif not src.endswith('.py'):
# its not all python files, copy and go to next
# TODO: handle powershell import rewrites
shutil.copyfile(src, dest)
Expand Down

0 comments on commit 080bbf3

Please sign in to comment.