2
0
mirror of https://github.com/xcat2/confluent.git synced 2026-11-23 10:52:41 +00:00

Add error message to a build failure

This commit is contained in:
Jarrod Johnson
2026-10-27 15:25:41 -04:00
parent 2a0ecc1cd6
commit 8e37f7619d
+5 -1
View File
@@ -776,7 +776,11 @@ class DebHandler(OsHandler):
mydir = get_mydir(self.oscategory)
srcdir = os.path.join(mydir, 'initramfs-tools')
targdir = os.path.join(self.targpath, 'etc/initramfs-tools')
shutil.copytree(srcdir, targdir)
try:
shutil.copytree(srcdir, targdir)
except Exception:
sys.stderr.write('Target directory already exists, cannot build\n')
raise
os.chmod(os.path.join(targdir, 'hooks/confluent'), 0o755)
#cmd = ['debootstrap', '--include={0}'.format(','.join(self.includepkgs)), self.codename, self.targpath]
if self.arch != os.uname().machine: