diff options
author | Paul Eggleton <paul.eggleton@linux.intel.com> | 2012-05-28 13:57:11 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2012-05-30 11:03:07 +0100 |
commit | 90caa605bd24279e4a9204e279492754119a8a55 (patch) | |
tree | eca7e2f4f99880211d548644f36da7a22af56fbf /meta/lib/oe | |
parent | e83d8e58a6b107eea87df0ec233a1bc932b2c6ea (diff) | |
download | openembedded-core-90caa605bd24279e4a9204e279492754119a8a55.tar.gz openembedded-core-90caa605bd24279e4a9204e279492754119a8a55.tar.bz2 openembedded-core-90caa605bd24279e4a9204e279492754119a8a55.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>
Diffstat (limited to 'meta/lib/oe')
-rw-r--r-- | meta/lib/oe/buildhistory_analysis.py | 2 |
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) |