summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul Eggleton <paul.eggleton@linux.intel.com>2012-05-28 13:57:11 +0100
committerScott Garman <scott.a.garman@intel.com>2012-08-10 09:26:06 -0700
commita530aee6d9b2b63ab5fa780b1761eac759e8c833 (patch)
tree497792aa5e3e099b2ac73901477fa3061cfef8ec
parentd592c3a26c630d5f3bfba4804a93766447bf72c9 (diff)
downloadopenembedded-core-a530aee6d9b2b63ab5fa780b1761eac759e8c833.tar.gz
openembedded-core-a530aee6d9b2b63ab5fa780b1761eac759e8c833.tar.bz2
openembedded-core-a530aee6d9b2b63ab5fa780b1761eac759e8c833.zip
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 <paul.eggleton@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-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):
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)