diff options
Diffstat (limited to 'bitbake')
-rw-r--r-- | bitbake/lib/bb/tinfoil.py | 29 |
1 files changed, 18 insertions, 11 deletions
diff --git a/bitbake/lib/bb/tinfoil.py b/bitbake/lib/bb/tinfoil.py index b50ed0553f..fb2ee4ad9c 100644 --- a/bitbake/lib/bb/tinfoil.py +++ b/bitbake/lib/bb/tinfoil.py | |||
@@ -635,17 +635,24 @@ class Tinfoil: | |||
635 | specify config_data then you cannot use a virtual | 635 | specify config_data then you cannot use a virtual |
636 | specification for fn. | 636 | specification for fn. |
637 | """ | 637 | """ |
638 | if appends and appendlist == []: | 638 | if self.tracking: |
639 | appends = False | 639 | # Enable history tracking just for the parse operation |
640 | if config_data: | 640 | self.run_command('enableDataTracking') |
641 | dctr = bb.remotedata.RemoteDatastores.transmit_datastore(config_data) | 641 | try: |
642 | dscon = self.run_command('parseRecipeFile', fn, appends, appendlist, dctr) | 642 | if appends and appendlist == []: |
643 | else: | 643 | appends = False |
644 | dscon = self.run_command('parseRecipeFile', fn, appends, appendlist) | 644 | if config_data: |
645 | if dscon: | 645 | dctr = bb.remotedata.RemoteDatastores.transmit_datastore(config_data) |
646 | return self._reconvert_type(dscon, 'DataStoreConnectionHandle') | 646 | dscon = self.run_command('parseRecipeFile', fn, appends, appendlist, dctr) |
647 | else: | 647 | else: |
648 | return None | 648 | dscon = self.run_command('parseRecipeFile', fn, appends, appendlist) |
649 | if dscon: | ||
650 | return self._reconvert_type(dscon, 'DataStoreConnectionHandle') | ||
651 | else: | ||
652 | return None | ||
653 | finally: | ||
654 | if self.tracking: | ||
655 | self.run_command('disableDataTracking') | ||
649 | 656 | ||
650 | def build_file(self, buildfile, task, internal=True): | 657 | def build_file(self, buildfile, task, internal=True): |
651 | """ | 658 | """ |