summaryrefslogtreecommitdiffstats
path: root/meta/lib
diff options
context:
space:
mode:
authorPaul Eggleton <paul.eggleton@linux.intel.com>2012-05-28 13:57:11 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2012-05-30 12:04:46 +0100
commit1fe254f123ad4748ad16163ab773a39ba9ad77cd (patch)
tree267d7620fb3633e12da8c71a0053ca51910e279b /meta/lib
parent5996b2b58e36864edc077326a942795ca12f48da (diff)
downloadpoky-1fe254f123ad4748ad16163ab773a39ba9ad77cd.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: 90caa605bd24279e4a9204e279492754119a8a55) 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 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):
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