X-Git-Url: https://git.decadent.org.uk/gitweb/?p=dak.git;a=blobdiff_plain;f=dak%2Fcopy_installer.py;h=c70b048dfe22bc9d8c24a76a747a9230df5f556e;hp=6bc8660174f749beafe48a147dfc6905c753aa8a;hb=5a61a05250b1bf5d54661103e8999eb7c7fc9207;hpb=6cfd1b05a05c82cac6cabb4af511093b37e903dd diff --git a/dak/copy_installer.py b/dak/copy_installer.py index 6bc86601..c70b048d 100755 --- a/dak/copy_installer.py +++ b/dak/copy_installer.py @@ -44,8 +44,8 @@ def main(): for option in [ "help", "source", "destination", "no-action" ]: if not cnf.has_key("Copy-Installer::Options::%s" % (option)): cnf["Copy-Installer::Options::%s" % (option)] = "" - extra_arguments = apt_pkg.ParseCommandLine(cnf.Cnf, Arguments, sys.argv) - Options = cnf.SubTree("Copy-Installer::Options") + extra_arguments = apt_pkg.parse_commandline(cnf.Cnf, Arguments, sys.argv) + Options = cnf.subtree("Copy-Installer::Options") if Options["Help"]: usage() @@ -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)