From aacbe3f35eefd30be7f02ecc69bd141fd1d185ce Mon Sep 17 00:00:00 2001 From: Javier Martin Date: Thu, 27 Jan 2011 09:38:21 +0100 Subject: Fix comparison with SRCREVINACTION constant Use '==' instead of 'is', otherwise it will always return true since 'rev' and "SRCREVINACTION" are not the same object. (Bitbake rev: f30b3af975a071d1584817054a2996f08a3aba4f) Signed-off-by: Javier Martin Signed-off-by: Chris Larson Signed-off-by: Richard Purdie --- bitbake/lib/bb/fetch/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bitbake/lib/bb/fetch/__init__.py b/bitbake/lib/bb/fetch/__init__.py index b452751c7b..65b4da07da 100644 --- a/bitbake/lib/bb/fetch/__init__.py +++ b/bitbake/lib/bb/fetch/__init__.py @@ -704,7 +704,7 @@ class Fetch(object): raise InvalidSRCREV("Please set SRCREV to a valid value") if not rev: return False - if rev is "SRCREVINACTION": + if rev == "SRCREVINACTION": return True return rev -- cgit v1.2.3-54-g00ecf