From 8faec0b6720b942d420aa9f17d8a67555882b3e1 Mon Sep 17 00:00:00 2001 From: Chris Larson Date: Fri, 26 Nov 2010 14:11:06 -0700 Subject: vercmp: don't choke on empty first version components (Bitbake rev: e75aa94e9477933c5a40021b2a8e844db54f29da) Signed-off-by: Chris Larson Signed-off-by: Richard Purdie --- bitbake/lib/bb/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'bitbake/lib/bb/utils.py') 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): -- cgit v1.2.3