fix exception raising

This commit is contained in:
Fredrik Eriksson 2024-07-13 07:52:17 +02:00
parent 2a880b5033
commit e2a91dd8ae
Signed by: feffe
GPG Key ID: E6B5580B853D322B

View File

@ -168,7 +168,7 @@ def pkg_upgrade():
raise sau.errors.UpgradeError(f"Kernel package {name} has an update, but system upgrade is disabled")
if not do_rebuild:
sau.errors.UpgradeError('Some packages require manual attention, did not upgrade')
raise sau.errors.UpgradeError('Some packages require manual attention, did not upgrade')
cmd = [ EMERGE_PATH, '--color', 'n', '-uDNq', '--with-bdeps=y', '@world' ]
ret, out, err = sau.helpers.exec_cmd(cmd, timeout=72000)