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:
parent
c68c5f6e31
commit
aacbe3f35e
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue