2
0
mirror of https://github.com/xcat2/confluent.git synced 2026-11-12 11:06:17 +00:00

Merge pull request #341 from Obihoernchen/fix/imgutil-apt-failure

Fail imgutil build when apt fails in an Ubuntu image
This commit is contained in:
Jarrod Johnson
2026-11-01 13:28:19 -05:00
committed by GitHub
+2 -1
View File
@@ -797,7 +797,8 @@ class DebHandler(OsHandler):
if rc:
sys.stderr.write('{0} failed with exit code {1}\n'.format(
' '.join(cmd), rc))
raise SystemExit(rc)
# not SystemExit, run_constrained would turn it into success
raise Exception('apt failed in image')
def prep_root(self, args):
mkdirp(os.path.join(self.targpath, 'etc/apt'))