diff options
Diffstat (limited to 'bitbake/lib/bb/command.py')
| -rw-r--r-- | bitbake/lib/bb/command.py | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/bitbake/lib/bb/command.py b/bitbake/lib/bb/command.py index dd77cdd6e2..f530cf844b 100644 --- a/bitbake/lib/bb/command.py +++ b/bitbake/lib/bb/command.py | |||
| @@ -20,6 +20,7 @@ Commands are queued in a CommandQueue | |||
| 20 | 20 | ||
| 21 | from collections import OrderedDict, defaultdict | 21 | from collections import OrderedDict, defaultdict |
| 22 | 22 | ||
| 23 | import io | ||
| 23 | import bb.event | 24 | import bb.event |
| 24 | import bb.cooker | 25 | import bb.cooker |
| 25 | import bb.remotedata | 26 | import bb.remotedata |
| @@ -500,6 +501,17 @@ class CommandsSync: | |||
| 500 | d = command.remotedatastores[dsindex].varhistory | 501 | d = command.remotedatastores[dsindex].varhistory |
| 501 | return getattr(d, method)(*args, **kwargs) | 502 | return getattr(d, method)(*args, **kwargs) |
| 502 | 503 | ||
| 504 | def dataStoreConnectorVarHistCmdEmit(self, command, params): | ||
| 505 | dsindex = params[0] | ||
| 506 | var = params[1] | ||
| 507 | oval = params[2] | ||
| 508 | val = params[3] | ||
| 509 | d = command.remotedatastores[params[4]] | ||
| 510 | |||
| 511 | o = io.StringIO() | ||
| 512 | command.remotedatastores[dsindex].varhistory.emit(var, oval, val, o, d) | ||
| 513 | return o.getvalue() | ||
| 514 | |||
| 503 | def dataStoreConnectorIncHistCmd(self, command, params): | 515 | def dataStoreConnectorIncHistCmd(self, command, params): |
| 504 | dsindex = params[0] | 516 | dsindex = params[0] |
| 505 | method = params[1] | 517 | method = params[1] |
