@classmethod
def from_metadata(cls, filename, metadata):
if cls.getvar('__SKIPPED', metadata):
- return cls.make_optional(skipped=True)
+ return cls.make_optional(skipped=True,
+ file_depends=metadata.getVar('__depends', False),
+ timestamp=bb.parse.cached_mtime(filename),
+ variants=cls.listvar('__VARIANTS', metadata) + [''])
tasks = metadata.getVar('__BBTASKS', False)
return bb.parse.cached_mtime_noerror(cachefile)
def add_info(self, filename, info, cacheData, parsed=None):
- cacheData.add_from_recipeinfo(filename, info)
+ if not info.skipped:
+ cacheData.add_from_recipeinfo(filename, info)
+
if not self.has_cache:
return
- if 'SRCREVINACTION' not in info.pv and not info.nocache:
+ if (info.skipped or 'SRCREVINACTION' not in info.pv) and not info.nocache:
if parsed:
self.cacheclean = False
self.depends_cache[filename] = info
for virtualfn, info in result:
if info.skipped:
self.skipped += 1
- else:
- self.bb_cache.add_info(virtualfn, info, self.cooker.status,
+ self.bb_cache.add_info(virtualfn, info, self.cooker.status,
parsed=parsed)
return True
logger.info(event._message)
continue
if isinstance(event, bb.event.ParseStarted):
+ if event.total == 0:
+ continue
parseprogress = new_progress("Parsing recipes", event.total).start()
continue
if isinstance(event, bb.event.ParseProgress):
parseprogress.update(event.current)
continue
if isinstance(event, bb.event.ParseCompleted):
+ if not parseprogress:
+ continue
+
parseprogress.finish()
print(("Parsing of %d .bb files complete (%d cached, %d parsed). %d targets, %d skipped, %d masked, %d errors."
% ( event.total, event.cached, event.parsed, event.virtuals, event.skipped, event.masked, event.errors)))