mirror of
https://gitlab.nic.cz/knot/knot-dns.git
synced 2026-02-03 18:49:28 -05:00
tests-extra: remove a setuptools dependency
This commit is contained in:
parent
412add0dc3
commit
3054acab05
1 changed files with 2 additions and 3 deletions
|
|
@ -26,8 +26,7 @@ from dnstest.libknot import libknot
|
|||
import dnstest.module
|
||||
import dnstest.response
|
||||
import dnstest.update
|
||||
import distutils.dir_util
|
||||
from shutil import copyfile
|
||||
from shutil import copyfile, copytree, copy2
|
||||
|
||||
def zone_arg_check(zone):
|
||||
# Convert one item list to single object.
|
||||
|
|
@ -892,7 +891,7 @@ class Server(object):
|
|||
def use_keys(self, zone):
|
||||
zone = zone_arg_check(zone)
|
||||
# copy all keys, even for other zones
|
||||
distutils.dir_util.copy_tree(zone.key_dir, self.keydir, update=True)
|
||||
copytree(zone.key_dir, self.keydir, copy_function=copy2)
|
||||
|
||||
def dnssec(self, zone):
|
||||
zone = zone_arg_check(zone)
|
||||
|
|
|
|||
Loading…
Reference in a new issue