diff options
Diffstat (limited to 'bitbake/lib/bb/cooker.py')
| -rw-r--r-- | bitbake/lib/bb/cooker.py | 10 |
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 | """ |
