From: Joerg Jaspert Date: Wed, 19 Jan 2011 18:49:00 +0000 (+0100) Subject: Ensure symlinks get copied as symlinks, not their contents X-Git-Url: https://git.decadent.org.uk/gitweb/?a=commitdiff_plain;h=de5723ed7d5687460fa2a816f27dae67293c45e6;p=dak.git Ensure symlinks get copied as symlinks, not their contents Signed-off-by: Joerg Jaspert --- diff --git a/dak/copy_installer.py b/dak/copy_installer.py index 6bc86601..34ae3215 100755 --- a/dak/copy_installer.py +++ b/dak/copy_installer.py @@ -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)