From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mga11.intel.com ([192.55.52.93]) by linuxtogo.org with esmtp (Exim 4.72) (envelope-from ) id 1Qze0X-0008Rq-Kj for bitbake-devel@lists.openembedded.org; Sat, 03 Sep 2011 02:22:49 +0200 Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by fmsmga102.fm.intel.com with ESMTP; 02 Sep 2011 17:17:49 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="4.68,321,1312182000"; d="scan'208";a="47755005" Received: from unknown (HELO scimitar.amr.corp.intel.com) ([10.255.14.9]) by fmsmga001.fm.intel.com with ESMTP; 02 Sep 2011 17:17:49 -0700 From: Joshua Lock To: bitbake-devel@lists.openembedded.org Date: Fri, 2 Sep 2011 17:17:37 -0700 Message-Id: X-Mailer: git-send-email 1.7.6 In-Reply-To: References: In-Reply-To: References: Subject: [PATCH 2/6] hob: reflect defaultsetup being default distro X-BeenThere: bitbake-devel@lists.openembedded.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 03 Sep 2011 00:22:49 -0000 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. Signed-off-by: Joshua Lock --- lib/bb/ui/hob.py | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/lib/bb/ui/hob.py b/lib/bb/ui/hob.py index c1302e5..022d1b6 100644 --- a/lib/bb/ui/hob.py +++ b/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 -- 1.7.6