提交 de5723ed 编写于 作者: J Joerg Jaspert

Ensure symlinks get copied as symlinks, not their contents

Signed-off-by: NJoerg Jaspert <joerg@debian.org>
上级 0086ca02
......@@ -121,7 +121,7 @@ Architectures to skip: %(skip_arch_list)s""" % {
def do_copy(self):
for source, dest in self.trees_to_copy:
shutil.copytree(source, dest)
shutil.copytree(source, dest, symlinks=True)
for source, dest in self.symlinks_to_create:
if os.path.lexists(dest):
os.unlink(dest)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册