diff --git a/package/nftables/nftables.mk b/package/nftables/nftables.mk index d5c16ac2be..232d541488 100644 --- a/package/nftables/nftables.mk +++ b/package/nftables/nftables.mk @@ -35,9 +35,9 @@ else NFTABLES_CONF_OPTS += --without-json endif -ifeq ($(BR2_PACKAGE_PYTHON)$(BR2_PACKAGE_PYTHON3),y) +ifeq ($(BR2_PACKAGE_PYTHON3),y) NFTABLES_CONF_OPTS += --enable-python -NFTABLES_DEPENDENCIES += $(if $(BR2_PACKAGE_PYTHON),python,python3) +NFTABLES_DEPENDENCIES += python3 else NFTABLES_CONF_OPTS += --disable-python endif