]> code.ossystems Code Review - openembedded-core.git/commit
buildhistory_analysis: improve field handling robustness
authorPaul Eggleton <paul.eggleton@linux.intel.com>
Thu, 19 Jan 2012 10:32:11 +0000 (10:32 +0000)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Thu, 19 Jan 2012 14:31:21 +0000 (14:31 +0000)
commit255d4bbf4d1e430d45f5fafb7d1c77d9ea67e174
treecb7260c4ccc0281f8831e6c0d7812a7ffa5f5262
parent15ad5d2c0e92fefdbb7c0cf064134b1cabfd84ac
buildhistory_analysis: improve field handling robustness

Avoid errors when comparing changes for KEY = value files (package info
files and image-info.txt):

* Handle keys appearing and disappearing - this will help to handle PE
  in package info files (which is only written when it is not blank) and
  when we add additional fields in future.
* Handle when old value is 0 for numeric field (avoid division by zero)
* Report when numeric field was empty or missing rather than 0 (but
  still treat it as 0 for comparison purposes)

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/lib/oe/buildhistory_analysis.py