From: Paul Eggleton Date: Mon, 28 May 2012 12:57:11 +0000 (+0100) Subject: buildhistory_analysis: fix error when version specifier missing X-Git-Tag: 2015-4~10476 X-Git-Url: https://code.ossystems.io/gitweb?a=commitdiff_plain;h=90caa605bd24279e4a9204e279492754119a8a55;p=openembedded-core.git 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. Signed-off-by: Paul Eggleton Signed-off-by: Richard Purdie --- diff --git a/meta/lib/oe/buildhistory_analysis.py b/meta/lib/oe/buildhistory_analysis.py index 313416cf74..29dc4a9ecf 100644 --- a/meta/lib/oe/buildhistory_analysis.py +++ b/meta/lib/oe/buildhistory_analysis.py @@ -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)