diff options
| -rw-r--r-- | bitbake/lib/bb/cooker.py | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/bitbake/lib/bb/cooker.py b/bitbake/lib/bb/cooker.py index 255b9f199a..673af8daec 100644 --- a/bitbake/lib/bb/cooker.py +++ b/bitbake/lib/bb/cooker.py | |||
| @@ -2236,12 +2236,13 @@ class CookerParser(object): | |||
| 2236 | profiles = [] | 2236 | profiles = [] |
| 2237 | for i in self.process_names: | 2237 | for i in self.process_names: |
| 2238 | logfile = "profile-parse-%s.log" % i | 2238 | logfile = "profile-parse-%s.log" % i |
| 2239 | if os.path.exists(logfile): | 2239 | if os.path.exists(logfile) and os.path.getsize(logfile): |
| 2240 | profiles.append(logfile) | 2240 | profiles.append(logfile) |
| 2241 | 2241 | ||
| 2242 | pout = "profile-parse.log.processed" | 2242 | if profiles: |
| 2243 | bb.utils.process_profilelog(profiles, pout = pout) | 2243 | pout = "profile-parse.log.processed" |
| 2244 | print("Processed parsing statistics saved to %s" % (pout)) | 2244 | bb.utils.process_profilelog(profiles, pout = pout) |
| 2245 | print("Processed parsing statistics saved to %s" % (pout)) | ||
| 2245 | 2246 | ||
| 2246 | def final_cleanup(self): | 2247 | def final_cleanup(self): |
| 2247 | if self.syncthread: | 2248 | if self.syncthread: |
