summaryrefslogtreecommitdiffstats
path: root/bitbake/lib/bb
diff options
context:
space:
mode:
authorDongxiao Xu <dongxiao.xu@intel.com>2012-03-24 13:36:18 +0800
committerRichard Purdie <richard.purdie@linuxfoundation.org>2012-03-25 12:23:32 +0100
commit64cb3cde276a8aa5c879256c3f19ca05abc58b06 (patch)
tree649c8ca8747718a88c87d33c40722fee4818e095 /bitbake/lib/bb
parentbc73876964578d324e5953480b68f7f22a94033c (diff)
downloadpoky-64cb3cde276a8aa5c879256c3f19ca05abc58b06.tar.gz
Hob: Set empty DISTRO if "defaultsetup" is selected
In Hob advanced setting, if "defaultsetup" is selected, we need to leave DISTRO variable not set in bitbake server. Otherwise, defaultsetup.conf will be parsed twice, causing TMPDIR and its related variables mess up. (Bitbake rev: 863b14ebf2c7443ce6df362f24af6395e520edbc) Signed-off-by: Dongxiao Xu <dongxiao.xu@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake/lib/bb')
-rw-r--r--bitbake/lib/bb/ui/crumbs/hobeventhandler.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/bitbake/lib/bb/ui/crumbs/hobeventhandler.py b/bitbake/lib/bb/ui/crumbs/hobeventhandler.py
index 4b8aabc4ec..e34281113c 100644
--- a/bitbake/lib/bb/ui/crumbs/hobeventhandler.py
+++ b/bitbake/lib/bb/ui/crumbs/hobeventhandler.py
@@ -274,7 +274,8 @@ class HobHandler(gobject.GObject):
274 self.server.runCommand(["setVariable", "IMAGE_FSTYPES", " ".join(image_fstypes).lstrip(" ")]) 274 self.server.runCommand(["setVariable", "IMAGE_FSTYPES", " ".join(image_fstypes).lstrip(" ")])
275 275
276 def set_distro(self, distro): 276 def set_distro(self, distro):
277 self.server.runCommand(["setVariable", "DISTRO", distro]) 277 if distro != "defaultsetup":
278 self.server.runCommand(["setVariable", "DISTRO", distro])
278 279
279 def set_package_format(self, format): 280 def set_package_format(self, format):
280 package_classes = "" 281 package_classes = ""