package_manager/rpm: decode systemctl failures

Parse systemctl error to provide more info

[Yocto #14395]

(From OE-Core rev: 9d33a3ad68aeadd359e978b35097ece507a92b14)

Signed-off-by: Armin Kuster <akuster808@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
Armin Kuster
2021-05-31 19:11:58 +00:00
committed by Richard Purdie
parent 20026c7246
commit 75f691d728

View File

@@ -199,6 +199,9 @@ class RpmPM(PackageManager):
failed_scriptlets_pkgnames = collections.OrderedDict()
for line in output.splitlines():
if line.startswith("Error: Systemctl"):
bb.error(line)
if line.startswith("Error in POSTIN scriptlet in rpm package"):
failed_scriptlets_pkgnames[line.split()[-1]] = True