From 5cbe9ad61296c91251299bcb0f32aa2e0b3dd5ea Mon Sep 17 00:00:00 2001 From: Antonio Rojas Date: Fri, 13 Oct 2023 20:13:31 +0000 Subject: fix(build): allow using --install and --offload simultaneously Don't take the full (local) path of the package to install when using --offload. Fixes #194 Component: pkgctl build --- src/lib/build/build.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'src/lib/build') diff --git a/src/lib/build/build.sh b/src/lib/build/build.sh index d6b530d..bf6339a 100644 --- a/src/lib/build/build.sh +++ b/src/lib/build/build.sh @@ -200,7 +200,11 @@ pkgctl_build() { ;; -I|--install) (( $# <= 1 )) && die "missing argument for %s" "$1" - MAKECHROOT_OPTIONS+=("-I" "$(realpath "$2")") + if (( OFFLOAD )); then + MAKECHROOT_OPTIONS+=("-I" "$2") + else + MAKECHROOT_OPTIONS+=("-I" "$(realpath "$2")") + fi warning 'installing packages into the chroot may break reproducible builds, use with caution!' shift 2 ;; -- cgit v1.2.3-70-g09d2