[oe-commits] Paul Eggleton : buildhistory_analysis: fix error when version specifier missing

git at git.openembedded.org git at git.openembedded.org
Wed May 30 11:05:42 UTC 2012


Module: openembedded-core.git
Branch: master
Commit: 90caa605bd24279e4a9204e279492754119a8a55
URL:    http://git.openembedded.org/?p=openembedded-core.git&a=commit;h=90caa605bd24279e4a9204e279492754119a8a55

Author: Paul Eggleton <paul.eggleton at linux.intel.com>
Date:   Mon May 28 13:57:11 2012 +0100

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 at linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie at linuxfoundation.org>

---

 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 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)
 





More information about the Openembedded-commits mailing list