[oe-commits] Graham Gower : task-boot.bb: Don't pull in u-a if ONLINE_PACKAGE_MANAGEMENT ="none".

git version control git at git.openembedded.org
Tue Sep 7 14:33:30 UTC 2010


Module: openembedded.git
Branch: testing-next
Commit: 47f52315e12511e589c171a9d377077923983be5
URL:    http://gitweb.openembedded.net/?p=openembedded.git&a=commit;h=47f52315e12511e589c171a9d377077923983be5

Author: Graham Gower <graham.gower at gmail.com>
Date:   Mon Aug  9 21:13:17 2010 +0000

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.

Signed-off-by: Graham Gower <graham.gower at gmail.com>
Signed-off-by: Khem Raj <raj.khem at gmail.com>

---

 recipes/tasks/task-boot.bb |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/recipes/tasks/task-boot.bb b/recipes/tasks/task-boot.bb
index 45d50ef..d193393 100644
--- a/recipes/tasks/task-boot.bb
+++ b/recipes/tasks/task-boot.bb
@@ -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"





More information about the Openembedded-commits mailing list