Skip to contentSkip to conversation

task-boot.bb: Don't pull in u-a if ONLINE_PACKAGE_MANAGEMENT="none".

PATCH New Graham Gower 1 participant 1 message Aug 10, 2010

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 task-boot.bb: Don't pull in u-a if ONLINE_PACKAGE_MANAGEMENT="none".

This makes it possible to build an opkgless system, without having to set DISTRO_UPDATE_ALTERNATIVES. In the unlikely event that someone doesn't want opkg, but does want update-alternatives, one can set DISTRO_UPDATE_ALTERNATIVES in the local.conf.

---
 recipes/tasks/task-boot.bb |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
recipes/tasks/task-boot.bb +1 -1
index 45d50ef..d193393 100644
@@ -17,7 +17,7 @@ MACHINE_ESSENTIAL_EXTRA_RRECOMMENDS ?= ""
 # u-a script used for building image which is defined with
 # PREFERRED_PROVIDER_virtual/update-alternatives-native
 
-DISTRO_UPDATE_ALTERNATIVES ?= "${PREFERRED_PROVIDER_virtual/update-alternatives}"
+DISTRO_UPDATE_ALTERNATIVES ?= "${@base_conditional("ONLINE_PACKAGE_MANAGEMENT", "none", "", "${PREFERRED_PROVIDER_virtual/update-alternatives}", d)}"
 
 # Make sure we build the kernel
 DEPENDS = "virtual/kernel"
Signature · 1 line
1.7.1