i hate symlinks.
This commit is contained in:
@@ -301,7 +301,7 @@ class Install(AtomicOperation):
|
||||
os.makedirs(destdir)
|
||||
|
||||
if os.path.islink(old_path):
|
||||
if not os.path.exists(new_path):
|
||||
if not os.path.lexists(new_path):
|
||||
os.symlink(os.readlink(old_path), new_path)
|
||||
else:
|
||||
shutil.copy(old_path, new_path)
|
||||
|
||||
Reference in New Issue
Block a user