diff options
Diffstat (limited to 'bitbake-dev/lib/bb/cooker.py')
-rw-r--r-- | bitbake-dev/lib/bb/cooker.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/bitbake-dev/lib/bb/cooker.py b/bitbake-dev/lib/bb/cooker.py index 3c232a6ac7..dceebb12d5 100644 --- a/bitbake-dev/lib/bb/cooker.py +++ b/bitbake-dev/lib/bb/cooker.py | |||
@@ -141,8 +141,10 @@ class BBCooker: | |||
141 | bb.error("Only one target can be used with the --environment option.") | 141 | bb.error("Only one target can be used with the --environment option.") |
142 | elif self.configuration.buildfile and len(self.configuration.pkgs_to_build) > 0: | 142 | elif self.configuration.buildfile and len(self.configuration.pkgs_to_build) > 0: |
143 | bb.error("No target should be used with the --environment and --buildfile options.") | 143 | bb.error("No target should be used with the --environment and --buildfile options.") |
144 | elif self.configuration.buildfile is not None or len(self.configuration.pkgs_to_build) > 0: | ||
145 | self.commandlineAction = ["showEnvironmentPackage", self.configuration.buildfile, self.configuration.pkgs_to_build] | ||
144 | else: | 146 | else: |
145 | self.commandlineAction = ["showEnvironment", self.configuration.buildfile, self.configuration.pkgs_to_build] | 147 | self.commandlineAction = ["showEnvironment"] |
146 | elif self.configuration.buildfile is not None: | 148 | elif self.configuration.buildfile is not None: |
147 | self.commandlineAction = ["buildFile", self.configuration.buildfile, self.configuration.cmd] | 149 | self.commandlineAction = ["buildFile", self.configuration.buildfile, self.configuration.cmd] |
148 | elif self.configuration.show_versions: | 150 | elif self.configuration.show_versions: |