buildhistory_analysis: fix error when version specifier missing

Passing None to split_versions() will raise an exception, so check that
the version is specified before passing it in.

(From OE-Core rev: 90caa605bd24279e4a9204e279492754119a8a55)

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
Paul Eggleton 2012-05-28 13:57:11 +01:00 committed by Richard Purdie
parent 5996b2b58e
commit 1fe254f123
1 changed files with 1 additions and 1 deletions

View File

@ -272,7 +272,7 @@ def compare_pkg_lists(astr, bstr):
if k in depverb:
dva = depvera[k]
dvb = depverb[k]
if dva != dvb:
if dva and dvb and dva != dvb:
if bb.utils.vercmp(split_version(dva), split_version(dvb)) < 0:
remove.append(k)