summaryrefslogtreecommitdiffstats
path: root/bitbake/lib/bb/cooker.py
diff options
context:
space:
mode:
authorChris Larson <chris_larson@mentor.com>2010-04-09 12:33:29 -0700
committerRichard Purdie <rpurdie@linux.intel.com>2010-07-02 15:41:31 +0100
commit87f62d7c8d386df0d613da4f48c0b210902ab621 (patch)
treebfa71505321276841f07bf875e479b272547b9f3 /bitbake/lib/bb/cooker.py
parentac170b0c346184bd8ba2fe1d56ccb9ea003b1a40 (diff)
downloadpoky-87f62d7c8d386df0d613da4f48c0b210902ab621.tar.gz
Ensure we always utilize the correct messaging domains
(Bitbake rev: 92a2e2e90981c0615171abe03645a772d84f6986) Signed-off-by: Chris Larson <chris_larson@mentor.com> Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
Diffstat (limited to 'bitbake/lib/bb/cooker.py')
-rw-r--r--bitbake/lib/bb/cooker.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/bitbake/lib/bb/cooker.py b/bitbake/lib/bb/cooker.py
index f49e76d04a..a413c8a854 100644
--- a/bitbake/lib/bb/cooker.py
+++ b/bitbake/lib/bb/cooker.py
@@ -121,11 +121,11 @@ class BBCooker:
121 self.commandlineAction = None 121 self.commandlineAction = None
122 122
123 if 'world' in self.configuration.pkgs_to_build: 123 if 'world' in self.configuration.pkgs_to_build:
124 bb.error("'world' is not a valid target for --environment.") 124 bb.msg.error(bb.msg.domain.Build, "'world' is not a valid target for --environment.")
125 elif len(self.configuration.pkgs_to_build) > 1: 125 elif len(self.configuration.pkgs_to_build) > 1:
126 bb.error("Only one target can be used with the --environment option.") 126 bb.msg.error(bb.msg.domain.Build, "Only one target can be used with the --environment option.")
127 elif self.configuration.buildfile and len(self.configuration.pkgs_to_build) > 0: 127 elif self.configuration.buildfile and len(self.configuration.pkgs_to_build) > 0:
128 bb.error("No target should be used with the --environment and --buildfile options.") 128 bb.msg.error(bb.msg.domain.Build, "No target should be used with the --environment and --buildfile options.")
129 elif len(self.configuration.pkgs_to_build) > 0: 129 elif len(self.configuration.pkgs_to_build) > 0:
130 self.commandlineAction = ["showEnvironmentTarget", self.configuration.pkgs_to_build] 130 self.commandlineAction = ["showEnvironmentTarget", self.configuration.pkgs_to_build]
131 else: 131 else:
@@ -146,13 +146,13 @@ class BBCooker:
146 self.commandlineAction = ["generateDotGraph", self.configuration.pkgs_to_build, self.configuration.cmd] 146 self.commandlineAction = ["generateDotGraph", self.configuration.pkgs_to_build, self.configuration.cmd]
147 else: 147 else:
148 self.commandlineAction = None 148 self.commandlineAction = None
149 bb.error("Please specify a package name for dependency graph generation.") 149 bb.msg.error(bb.msg.domain.Build, "Please specify a package name for dependency graph generation.")
150 else: 150 else:
151 if self.configuration.pkgs_to_build: 151 if self.configuration.pkgs_to_build:
152 self.commandlineAction = ["buildTargets", self.configuration.pkgs_to_build, self.configuration.cmd] 152 self.commandlineAction = ["buildTargets", self.configuration.pkgs_to_build, self.configuration.cmd]
153 else: 153 else:
154 self.commandlineAction = None 154 self.commandlineAction = None
155 bb.error("Nothing to do. Use 'bitbake world' to build everything, or run 'bitbake --help' for usage information.") 155 bb.msg.error(bb.msg.domain.Build, "Nothing to do. Use 'bitbake world' to build everything, or run 'bitbake --help' for usage information.")
156 156
157 def runCommands(self, server, data, abort): 157 def runCommands(self, server, data, abort):
158 """ 158 """