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 | |
parent | 6810622484f9ab0df878717c0d2fa64271a794dc (diff) | |
download | poky-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.py | 2 |
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): |