From patchwork Fri Aug 10 16:09:05 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: [denzil, 2/4] buildhistory_analysis: fix error when version specifier missing Date: Fri, 10 Aug 2012 16:09:05 -0000 From: Paul Eggleton X-Patchwork-Id: 34273 Message-Id: <3bb14a0d02769d0fd28898f7781704c5069f1e85.1344614803.git.paul.eggleton@linux.intel.com> To: openembedded-core@lists.openembedded.org, Scott Garman 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 --- meta/lib/oe/buildhistory_analysis.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/meta/lib/oe/buildhistory_analysis.py b/meta/lib/oe/buildhistory_analysis.py index 313416c..29dc4a9 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)