summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChris Larson <chris_larson@mentor.com>2010-11-26 14:11:06 -0700
committerRichard Purdie <rpurdie@linux.intel.com>2011-01-04 14:46:45 +0000
commit8faec0b6720b942d420aa9f17d8a67555882b3e1 (patch)
tree8ee4a60f0708492f8dd8200d04c2f51f3e9798bd
parent6810622484f9ab0df878717c0d2fa64271a794dc (diff)
downloadpoky-8faec0b6720b942d420aa9f17d8a67555882b3e1.tar.gz
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>
-rw-r--r--bitbake/lib/bb/utils.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/bitbake/lib/bb/utils.py b/bitbake/lib/bb/utils.py
index 4208c79343..e4c12fd1ab 100644
--- a/bitbake/lib/bb/utils.py
+++ b/bitbake/lib/bb/utils.py
@@ -93,7 +93,7 @@ def vercmp(ta, tb):
93 (ea, va, ra) = ta 93 (ea, va, ra) = ta
94 (eb, vb, rb) = tb 94 (eb, vb, rb) = tb
95 95
96 r = int(ea)-int(eb) 96 r = int(ea or 0) - int(eb or 0)
97 if (r == 0): 97 if (r == 0):
98 r = vercmp_part(va, vb) 98 r = vercmp_part(va, vb)
99 if (r == 0): 99 if (r == 0):