diff options
Diffstat (limited to 'bitbake-dev/lib/bb/command.py')
| -rw-r--r-- | bitbake-dev/lib/bb/command.py | 16 |
1 files changed, 9 insertions, 7 deletions
diff --git a/bitbake-dev/lib/bb/command.py b/bitbake-dev/lib/bb/command.py index 4cab78e43b..9226a2772f 100644 --- a/bitbake-dev/lib/bb/command.py +++ b/bitbake-dev/lib/bb/command.py | |||
| @@ -203,23 +203,25 @@ class CommandsAsync: | |||
| 203 | command.finishAsyncCommand() | 203 | command.finishAsyncCommand() |
| 204 | showVersions.needcache = True | 204 | showVersions.needcache = True |
| 205 | 205 | ||
| 206 | def showEnvironmentPackage(self, command, params): | 206 | def showEnvironmentTarget(self, command, params): |
| 207 | """ | 207 | """ |
| 208 | Print the environment of a recipe | 208 | Print the environment of a target recipe |
| 209 | (needs the cache to work out which recipe to use) | ||
| 209 | """ | 210 | """ |
| 210 | bfile = params[0] | 211 | pkg = params[0] |
| 211 | pkg = params[1] | ||
| 212 | 212 | ||
| 213 | command.cooker.showEnvironment(bfile, pkg) | 213 | command.cooker.showEnvironment(None, pkg) |
| 214 | command.finishAsyncCommand() | 214 | command.finishAsyncCommand() |
| 215 | showEnvironmentPackage.needcache = True | 215 | showEnvironmentTarget.needcache = True |
| 216 | 216 | ||
| 217 | def showEnvironment(self, command, params): | 217 | def showEnvironment(self, command, params): |
| 218 | """ | 218 | """ |
| 219 | Print the standard environment | 219 | Print the standard environment |
| 220 | or if specified the environment for a specified recipe | ||
| 220 | """ | 221 | """ |
| 222 | bfile = params[0] | ||
| 221 | 223 | ||
| 222 | command.cooker.showEnvironment() | 224 | command.cooker.showEnvironment(bfile) |
| 223 | command.finishAsyncCommand() | 225 | command.finishAsyncCommand() |
| 224 | showEnvironment.needcache = False | 226 | showEnvironment.needcache = False |
| 225 | 227 | ||
