]> git.decadent.org.uk Git - dak.git/commitdiff
Ensure symlinks get copied as symlinks, not their contents
authorJoerg Jaspert <joerg@debian.org>
Wed, 19 Jan 2011 18:49:00 +0000 (19:49 +0100)
committerJoerg Jaspert <joerg@debian.org>
Wed, 19 Jan 2011 18:49:00 +0000 (19:49 +0100)
Signed-off-by: Joerg Jaspert <joerg@debian.org>
dak/copy_installer.py

index 6bc8660174f749beafe48a147dfc6905c753aa8a..34ae3215ef4a9834078f2f99aee697757a89b6b4 100755 (executable)
@@ -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)