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 <javier.martin@vista-silicon.com>
Signed-off-by: Chris Larson <chris_larson@mentor.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
Javier Martin 2011-01-27 09:38:21 +01:00 committed by Richard Purdie
parent c68c5f6e31
commit aacbe3f35e
1 changed files with 1 additions and 1 deletions

View File

@ -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