From 7d3d3e90003eaec1009331e357fb579b22fd6e9d Mon Sep 17 00:00:00 2001 From: Joshua Lock Date: Fri, 2 Sep 2011 10:17:52 -0700 Subject: hob: reflect defaultsetup being default distro If no value is set for DISTRO the defaultsetup policy is used, reflect this in the UI by having defaultsetup selected in the Distribution combo when no other DISTRO is set. (Bitbake rev: 126267c545ede65042959d134ea75c0345577747) Signed-off-by: Joshua Lock Signed-off-by: Richard Purdie --- bitbake/lib/bb/ui/hob.py | 2 ++ 1 file changed, 2 insertions(+) (limited to 'bitbake') diff --git a/bitbake/lib/bb/ui/hob.py b/bitbake/lib/bb/ui/hob.py index c1302e51fa..022d1b638a 100644 --- a/bitbake/lib/bb/ui/hob.py +++ b/bitbake/lib/bb/ui/hob.py @@ -992,6 +992,8 @@ def main (server, eventHandler): if not sdk_mach: sdk_mach = server.runCommand(["getVariable", "SDK_ARCH"]) distro = server.runCommand(["getVariable", "DISTRO"]) + if not distro: + distro = "defaultsetup" bbthread = server.runCommand(["getVariable", "BB_NUMBER_THREADS"]) if not bbthread: bbthread = 1 -- cgit v1.2.3-54-g00ecf