From 46f1e91f88129e2d27fa357e0e48503e701b29f5 Mon Sep 17 00:00:00 2001 From: InsanePrawn Date: Thu, 3 Nov 2022 15:04:47 +0100 Subject: [PATCH] packages/build: build_package(): print package path in all info msgs --- packages/build.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/build.py b/packages/build.py index 602dfe9..b01fbcb 100644 --- a/packages/build.py +++ b/packages/build.py @@ -494,7 +494,7 @@ def build_package( if enable_ccache: env['PATH'] = f"/usr/lib/ccache:{env['PATH']}" native_chroot.mount_ccache(user=build_user) - logging.info('Setting up dependencies for cross-compilation') + logging.info(f'{package.path}: Setting up dependencies for cross-compilation') # include crossdirect for ccache symlinks and qemu-user cross_deps = list(package.makedepends) if package.nodeps else (deps + CROSSDIRECT_PKGS + [f"{GCC_HOSTSPECS[native_chroot.arch][arch]}-gcc"]) results = native_chroot.try_install_packages(cross_deps) @@ -526,7 +526,7 @@ def build_package( dep_install = target_chroot.try_install_packages(deps, allow_fail=False) failed_deps = [name for name, res in dep_install.items() if res.returncode != 0] # type: ignore[union-attr] if failed_deps: - raise Exception(f'Dependencies failed to install: {failed_deps}') + raise Exception(f'{package.path}: Dependencies failed to install: {failed_deps}') if enable_ccache: build_root.mount_ccache(user=build_user)