From: Javier Martin Date: Thu, 27 Jan 2011 08:38:21 +0000 (+0100) Subject: Fix comparison with SRCREVINACTION constant X-Git-Tag: 2011-1~2389 X-Git-Url: https://code.ossystems.io/gitweb?a=commitdiff_plain;h=aacbe3f35eefd30be7f02ecc69bd141fd1d185ce;p=openembedded-core.git 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 --- 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