diff options
Diffstat (limited to 'meta/lib')
-rw-r--r-- | meta/lib/oe/package_manager.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/meta/lib/oe/package_manager.py b/meta/lib/oe/package_manager.py index 61df06d4f0..2d8aeba037 100644 --- a/meta/lib/oe/package_manager.py +++ b/meta/lib/oe/package_manager.py | |||
@@ -392,7 +392,7 @@ class PackageManager(object, metaclass=ABCMeta): | |||
392 | output = subprocess.check_output(script_full, stderr=subprocess.STDOUT) | 392 | output = subprocess.check_output(script_full, stderr=subprocess.STDOUT) |
393 | if output: bb.note(output.decode("utf-8")) | 393 | if output: bb.note(output.decode("utf-8")) |
394 | except subprocess.CalledProcessError as e: | 394 | except subprocess.CalledProcessError as e: |
395 | bb.warn("The postinstall intercept hook '%s' failed, details in log.do_rootfs" % script) | 395 | bb.warn("The postinstall intercept hook '%s' failed, details in %s/log.do_%s" % (script, self.d.getVar('T'), self.d.getVar('BB_CURRENTTASK'))) |
396 | bb.note("Exit code %d. Output:\n%s" % (e.returncode, e.output.decode("utf-8"))) | 396 | bb.note("Exit code %d. Output:\n%s" % (e.returncode, e.output.decode("utf-8"))) |
397 | self._postpone_to_first_boot(script_full) | 397 | self._postpone_to_first_boot(script_full) |
398 | 398 | ||
@@ -789,7 +789,7 @@ class RpmPM(PackageManager): | |||
789 | failed_scriptlets_pkgnames[line.split()[-1]] = True | 789 | failed_scriptlets_pkgnames[line.split()[-1]] = True |
790 | 790 | ||
791 | if len(failed_scriptlets_pkgnames) > 0: | 791 | if len(failed_scriptlets_pkgnames) > 0: |
792 | failed_postinsts_warn(list(failed_scriptlets_pkgnames.keys()), self.d.expand("${T}/log.do_rootfs")) | 792 | failed_postinsts_warn(list(failed_scriptlets_pkgnames.keys()), self.d.expand("${T}/log.do_${BB_CURRENTTASK}")) |
793 | for pkg in failed_scriptlets_pkgnames.keys(): | 793 | for pkg in failed_scriptlets_pkgnames.keys(): |
794 | self.save_rpmpostinst(pkg) | 794 | self.save_rpmpostinst(pkg) |
795 | 795 | ||
@@ -1265,7 +1265,7 @@ class OpkgPM(OpkgDpkgPM): | |||
1265 | bb.warn(line) | 1265 | bb.warn(line) |
1266 | failed_pkgs.append(line.split(".")[0]) | 1266 | failed_pkgs.append(line.split(".")[0]) |
1267 | if failed_pkgs: | 1267 | if failed_pkgs: |
1268 | failed_postinsts_warn(failed_pkgs, self.d.expand("${T}/log.do_rootfs")) | 1268 | failed_postinsts_warn(failed_pkgs, self.d.expand("${T}/log.do_${BB_CURRENTTASK}")) |
1269 | except subprocess.CalledProcessError as e: | 1269 | except subprocess.CalledProcessError as e: |
1270 | (bb.fatal, bb.warn)[attempt_only]("Unable to install packages. " | 1270 | (bb.fatal, bb.warn)[attempt_only]("Unable to install packages. " |
1271 | "Command '%s' returned %d:\n%s" % | 1271 | "Command '%s' returned %d:\n%s" % |
@@ -1530,7 +1530,7 @@ class DpkgPM(OpkgDpkgPM): | |||
1530 | bb.warn("%s for package %s failed with %d:\n%s" % | 1530 | bb.warn("%s for package %s failed with %d:\n%s" % |
1531 | (control_script.name, pkg_name, e.returncode, | 1531 | (control_script.name, pkg_name, e.returncode, |
1532 | e.output.decode("utf-8"))) | 1532 | e.output.decode("utf-8"))) |
1533 | failed_postinsts_warn([pkg_name], self.d.expand("${T}/log.do_rootfs")) | 1533 | failed_postinsts_warn([pkg_name], self.d.expand("${T}/log.do_${BB_CURRENTTASK}")) |
1534 | failed_pkgs.append(pkg_name) | 1534 | failed_pkgs.append(pkg_name) |
1535 | break | 1535 | break |
1536 | 1536 | ||