summaryrefslogtreecommitdiffstats
path: root/meta/lib
diff options
context:
space:
mode:
authorPaul Eggleton <paul.eggleton@linux.intel.com>2012-05-28 12:57:11 (GMT)
committerRichard Purdie <richard.purdie@linuxfoundation.org>2012-08-21 10:16:45 (GMT)
commit75b7901f22f30ad4eb6c9000f651b4d893ceabb3 (patch)
tree61b05a519323eacd4d937972b4e9483153ae4dea /meta/lib
parentc520132cb82253afc84f417932177e073aed6b59 (diff)
downloadpoky-75b7901f22f30ad4eb6c9000f651b4d893ceabb3.tar.gz
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: a530aee6d9b2b63ab5fa780b1761eac759e8c833) Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/lib')
-rw-r--r--meta/lib/oe/buildhistory_analysis.py2
1 files changed, 1 insertions, 1 deletions
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):
272 if k in depverb: 272 if k in depverb:
273 dva = depvera[k] 273 dva = depvera[k]
274 dvb = depverb[k] 274 dvb = depverb[k]
275 if dva != dvb: 275 if dva and dvb and dva != dvb:
276 if bb.utils.vercmp(split_version(dva), split_version(dvb)) < 0: 276 if bb.utils.vercmp(split_version(dva), split_version(dvb)) < 0:
277 remove.append(k) 277 remove.append(k)
278 278