diff options
author | Chris Larson <chris_larson@mentor.com> | 2010-11-26 14:11:06 -0700 |
---|---|---|
committer | Richard Purdie <rpurdie@linux.intel.com> | 2011-01-04 14:46:45 +0000 |
commit | 8faec0b6720b942d420aa9f17d8a67555882b3e1 (patch) | |
tree | 8ee4a60f0708492f8dd8200d04c2f51f3e9798bd /bitbake/lib/bb | |
parent | 6810622484f9ab0df878717c0d2fa64271a794dc (diff) | |
download | openembedded-core-8faec0b6720b942d420aa9f17d8a67555882b3e1.tar.gz openembedded-core-8faec0b6720b942d420aa9f17d8a67555882b3e1.tar.bz2 openembedded-core-8faec0b6720b942d420aa9f17d8a67555882b3e1.tar.xz openembedded-core-8faec0b6720b942d420aa9f17d8a67555882b3e1.zip |
vercmp: don't choke on empty first version components
(Bitbake rev: e75aa94e9477933c5a40021b2a8e844db54f29da)
Signed-off-by: Chris Larson <chris_larson@mentor.com>
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
Diffstat (limited to 'bitbake/lib/bb')
-rw-r--r-- | bitbake/lib/bb/utils.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bitbake/lib/bb/utils.py b/bitbake/lib/bb/utils.py index 4208c7934..e4c12fd1a 100644 --- a/bitbake/lib/bb/utils.py +++ b/bitbake/lib/bb/utils.py @@ -93,7 +93,7 @@ def vercmp(ta, tb): (ea, va, ra) = ta (eb, vb, rb) = tb - r = int(ea)-int(eb) + r = int(ea or 0) - int(eb or 0) if (r == 0): r = vercmp_part(va, vb) if (r == 0): |