packages/build: use makepkg --nodeps if package.nodeps is set...

This commit is contained in:
InsanePrawn 2022-11-03 14:29:44 +01:00
parent 71e33ab8e1
commit 2cff31973e

View file

@ -511,7 +511,7 @@ def build_package(
else: else:
logging.info(f'Host-compiling {package.path}') logging.info(f'Host-compiling {package.path}')
build_root = target_chroot build_root = target_chroot
makepkg_compile_opts += ['--syncdeps'] makepkg_compile_opts += ['--nodeps' if package.nodeps else '--syncdeps']
env = deepcopy(get_makepkg_env(arch)) env = deepcopy(get_makepkg_env(arch))
if foreign_arch and enable_crossdirect and package.name not in CROSSDIRECT_PKGS: if foreign_arch and enable_crossdirect and package.name not in CROSSDIRECT_PKGS:
env['PATH'] = f"/native/usr/lib/crossdirect/{arch}:{env['PATH']}" env['PATH'] = f"/native/usr/lib/crossdirect/{arch}:{env['PATH']}"