From 3a36d5dfe49fc8ba01ff1fb21bd0639e8d1cf6e9 Mon Sep 17 00:00:00 2001 From: Bastian Blank Date: Sun, 18 Jun 2017 18:18:09 +0000 Subject: [PATCH] Make hardlinks of the copies installer trees --- dak/copy_installer.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/dak/copy_installer.py b/dak/copy_installer.py index d25021fd..44ee0bf1 100755 --- a/dak/copy_installer.py +++ b/dak/copy_installer.py @@ -20,8 +20,9 @@ ################################################################################ from daklib.config import Config +import daklib.daksubprocess -import apt_pkg, glob, os.path, re, shutil, sys +import apt_pkg, glob, os.path, re, sys def usage(exit_code = 0): print """Usage: dak copy-installer [OPTION]... VERSION @@ -126,7 +127,7 @@ Architectures to skip: %(skip_arch_list)s""" % { if not os.path.exists(dest): os.makedirs(dest) for source, dest in self.trees_to_copy: - shutil.copytree(source, dest, symlinks=True) + daklib.daksubprocess.check_call(['cp', '-al', source, dest]) for source, dest in self.symlinks_to_create: if os.path.lexists(dest): os.unlink(dest) -- GitLab