diff options
Diffstat (limited to 'bitbake/lib/bb/cooker.py')
-rw-r--r-- | bitbake/lib/bb/cooker.py | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/bitbake/lib/bb/cooker.py b/bitbake/lib/bb/cooker.py index 2ee349e041..ad08c473ae 100644 --- a/bitbake/lib/bb/cooker.py +++ b/bitbake/lib/bb/cooker.py | |||
@@ -415,7 +415,7 @@ class BBCooker: | |||
415 | self.ui_cmdline = cmdline | 415 | self.ui_cmdline = cmdline |
416 | clean = True | 416 | clean = True |
417 | for o in options: | 417 | for o in options: |
418 | if o in ['prefile', 'postfile', 'tracking']: | 418 | if o in ['prefile', 'postfile']: |
419 | server_val = getattr(self.configuration, "%s_server" % o, None) | 419 | server_val = getattr(self.configuration, "%s_server" % o, None) |
420 | if not options[o] and server_val: | 420 | if not options[o] and server_val: |
421 | # restore value provided on server start | 421 | # restore value provided on server start |
@@ -486,6 +486,12 @@ class BBCooker: | |||
486 | if not pkgs_to_build: | 486 | if not pkgs_to_build: |
487 | pkgs_to_build = [] | 487 | pkgs_to_build = [] |
488 | 488 | ||
489 | orig_tracking = self.configuration.tracking | ||
490 | if not orig_tracking: | ||
491 | self.enableDataTracking() | ||
492 | self.reset() | ||
493 | |||
494 | |||
489 | if buildfile: | 495 | if buildfile: |
490 | # Parse the configuration here. We need to do it explicitly here since | 496 | # Parse the configuration here. We need to do it explicitly here since |
491 | # this showEnvironment() code path doesn't use the cache | 497 | # this showEnvironment() code path doesn't use the cache |
@@ -530,6 +536,9 @@ class BBCooker: | |||
530 | if envdata.getVarFlag(e, 'func', False) and envdata.getVarFlag(e, 'python', False): | 536 | if envdata.getVarFlag(e, 'func', False) and envdata.getVarFlag(e, 'python', False): |
531 | logger.plain("\npython %s () {\n%s}\n", e, envdata.getVar(e, False)) | 537 | logger.plain("\npython %s () {\n%s}\n", e, envdata.getVar(e, False)) |
532 | 538 | ||
539 | if not orig_tracking: | ||
540 | self.disableDataTracking() | ||
541 | self.reset() | ||
533 | 542 | ||
534 | def buildTaskData(self, pkgs_to_build, task, abort, allowincomplete=False): | 543 | def buildTaskData(self, pkgs_to_build, task, abort, allowincomplete=False): |
535 | """ | 544 | """ |