]> git.decadent.org.uk Git - dak.git/blobdiff - dak/copy_installer.py
Debug suites might also miss the source package
[dak.git] / dak / copy_installer.py
index 6bc8660174f749beafe48a147dfc6905c753aa8a..2e8a04875fdcd3c5a2a7582f52ee643aa464e5a7 100755 (executable)
@@ -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()
@@ -92,7 +92,7 @@ class InstallerCopier:
 
     def check_dir(self, dir, message):
         if not os.path.isdir(dir):
-            raise IOError(message)
+            raise IOError("%s (%s)" % (message, dir))
 
     def check_architecture(self, arch_dir):
         architecture = re.sub('.*?/installer-(.*?)/.*', r'\1', arch_dir)
@@ -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)